joomla falang add translation for ignite gallery - joomla

As i am new to joomla i don't get any idea how to make translations work as they are ment to work...... Currently i am trying to add translation to ignite gallery component using this xml file to specify what to translate
"<?xml version="1.0" ?>
<falang type="contentelement">
<name>Ignite Gallery v1.0 Main</name>
<author>Matthew Thomson</author>
<version>1.0</version>
<description>Ignite Gallery v1.0 Main</description>
<reference>
<table name="igallery">
<field type="referenceid" name="id" translate="0">ID</field>
<field type="titletext" name="name" translate="1">Name</field>
<field type="htmltext" name="menu_description" translate="1">Menu Description</field>
<field type="htmltext" name="gallery_description" translate="1">Gallery Description</field>
<field type="text" name="alias" translate="0">Alias</field>
</table>
</reference>
</falang>"
The problem now is that it translates from English to Russian but when i try to translate from Russian to English falang overwrites the main language with russian.
It would be nice if you could explain me why......
EDIT:
I am not trying to translate gallery itselve i am trying to translate images name, description and menu description using that xml file

Considering you have installed joomla's Russian language package on your website:
go to your website root folder
locate languages folder
go to en-GB folder
find en-GB.com_ignitegallery.ini (or whatever your component name is)
copy it inside ru-RU folder in the languages folder
change it's name to ru-RU.com_ignitegallery.ini
open it
translate it
done!
Now all you need is to change your website's language to Russian.

Related

Apply custom theme to Odoo app

I am new to odoo, know only how to create and update modules and apps but have no idea about theming my modules
I have create my own app from scratch (depends on base only) and now I need to customize its look, something like changing colors, fonts and menus positions and behavior, all I have found while searching is to create a module based on website module and customize it, and frankly I have no idea how my module will get the changes I can made on the theme module?
I need step by step tutorial about this which is suite to what I know in Odoo
For theme reference you can visit these Links:
Customize a theme
New theme For Odoo Website
ODOO Official Doc
Slide Share PPt By ODOO
This may help in your case.
Edited
Regarding : "how to get my normal menus and its elements represented in the website"
Below i am posting the code snippet for adding the menu in website:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record id="menu_my_menu" model="website.menu">
<field name="name">MyMenu</field>
<field name="url">/MyMenuControllerUrl</field>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence" type="int">20</field>
</record>
</data>
</openerp>
Here /MyMenuControllerUrl is the url of controller which render your template .
I hope this may help you.

magento changing product description tab title

I am trying Magento and one thing I'm trying to do, but just cannot achieve, is just change the title of the Product's Description tab.
I've tried searching online but can online find tutorials for adding tabs (which don't work)
All i am after is just to change the product description tab.
you can change it in file:
app/design/frontend/YOUR-PACKAGE/YOUR-THEME/layout/catalog.xml
inside there is a code line:
<action method="setTitle">
<argument translate="true" name="title" xsi:type="string">Description</argument>
</action>
you just need to change <value> node and put what you want

Joomla: Updated module is not reading from the language file

I have made some changes to my custom module's xml manifest file and also added new entries in the module's language file but the new language entries are not translated when I edit the module.
In the language file, I added a new entry such as:
MOD_MY_MODULE_LABEL="This is a label"
When I edit the module, all I can see is MOD_MY_MODULE_LABEL. I've refreshed the cache for the module from the Extension Manager but it's not reading the new changes. Am I missing something?
Once your template has been "installed", the language file in your template is no longer referenced. You need to open the following INI files:
/[ROOT]/language/en-GB/en-GB.tpl_[-=YourTemplate=-].ini
/[ROOT]/language/en-GB/en-GB.tpl_[-=YourTemplate=-].sys.ini
(Where [ROOT] is the dir you installed Joomla, and [-=YourTemplate=-] is the name you assigned your language files, they will be named exactly to the language files in your template, but in a different location for the Joomla system)
If you decide to take your template to another website (like another client) remember to grab those INIs and swap them out in your template folder
The proper method is like follows,
In your module xml file should have language file like follows.
<languages>
<language tag="en-GB">en-GB.mod_latesttweets.ini</language>
<language tag="en-GB">en-GB.mod_latesttweets.sys.ini</language>
</languages>
and your fields like.
<field name="consumer_key" type="text" default="" label="MOD_TWITTER_CONSUMER_KEY" description="MOD_TWITTER_CONSUMER_KEY_DESC" size="60"/>
Then module folder have these two files.
en-GB.mod_latesttweets.ini
en-GB.mod_latesttweets.sys.ini
Inside language file like below.
MOD_TWITTER_CONSUMER_KEY = "Consumer Key"
Then Joomla will place this file in the proper language folder while you install the module.
Once you have installed the module and needs to change the language labels. Should be change inside Joomla language folder file.
You can download a sample module from this link and check the structure.
The issue look like your language file does not exists.
Hope its helps..

How can I add an icon in a SharePoint document library template?

i want to insert a image in a sharepoint document library template.
It should appear when I click Site Settings -> More Options -> in the Library selection.
I tried to manipulate the manifest.xml - File with the ImageUrl-Tag and it didn't help.
Is it possible? I've searched for many days an can't find anything.
THX
You want to add a preview image to a custom SharePoint document library you created, correct?
I'm assuming you have created a list template (specifically a document library template). In the elements.xml of that template you have the Image attribute which represents the preview image.
Here is an example elements.xml for a custom document library:
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ListTemplate
Name="MyList"
Type="10012"
BaseType="1"
OnQuickLaunch="TRUE"
SecurityBits="11"
Sequence="110"
DisplayName="My List"
Description=""
Hidden="false"
Image="/_layouts/images/itdl.png"
DocumentTemplate="121"/>
</Elements>
The document library will be shown with the image located at /_layouts/images/itdl.png as its preview image. You said you tried settings the ImageUrl attribute - this doesn't exist for a list template, though it would exist when you were creating a web template (see this SO post).

set language to administrator menu in joomla 1.5

i have develop a component in joomla 1.5 and make .xml file to install
in my .xml i have administrator menu like
<administration><menu>COM_MY_COMP</menu>
<submenu>
<menu task="display">COM_MY_COMP_MENU1</menu>
<menu task="additem">COM_MY_COMP_MENU2</menu>
</submenu>
and in language file i set the item like
COM_MY_COMP="My Component"
COM_MY_COMP_MENU1="Dispaly"
COM_MY_COMP_MENU2="Dispaly2"
it working on other item but not on administrator menu , it is not convert to COM_MY_COMP to My Component
i use joomla 1.5.
You can't just add the language file to the folder. You need to re-install the component WITH the language file. Here is what you need to add to the xml.
<languages folder="language-admin">
<language tag="en-GB">en-GB/en-GB.com_yourcomponent.ini</language>
<language tag="en-GB">en-GB/en-GB.com_yourcomponent.menu.ini</language>
</languages>
Also may I say that if its the menu you are trying to translate, you will need a separate language file like en-GB.com_yourcomponent.menu.ini
and below is how it should look.
COM_YOURCOMPONENT="Your Component"
COM_YOURCOMPONENT.CONTROL_PANEL="Control Panel"
Hope this helps
You have to put your translation in this folder:
/administrator/language/en-GB/

Resources