Adding a new language to the Odoo ERP - odoo

I want to add a new language to the Odoo openERP (installed on the local machine) which is not on the list of its languages.
I changed the string in some .po files but it did not affect the translated view in the app.
Any idea to change language easily by editing the .po file for other languages? for example changing the string of the fr.po to the desired one.

Here are the steps, I followed to add a new language (Sindhi) in odoo. After creating a language file (.po) follow these steps, make sure to replace language with whatever you want to add:
Step 1 - Activate developer mode.
Step 2 - From Settings --> Translations --> Import / Export, import translation file (.po) with Sindhi / سنڌي as Language Name, sn_PK as code
Step 3 - After importing, you should see the Sindhi / سنڌي in settings --> Translations --> Languages.
Step 4 - Now you can set your language from the user preference menu.

Related

uwp localization with 1 resource file for all variants of a language

I know how localization in uwp works and I currently have en-US and es-es Resouce files.
What I want to ask is can I just use 1 resource file i.e en and will that affect all variants of English language? like en-us , en-as and all others? and then 1 file for Spanish i.e : es and so on.
all language variants have only few differences between them which are negligible almost in my app. I noticed my app has most of its users from Spain and US only. I assume that is because I am only supporting these 2 languages right now. So I want to support all variants of Spanish and all variants of English but only with 2 files, would that work or do I need to provide 1 file for each variant?
Try checking first if the current app language is any english variant (en-US, en-AS, ...) and if it's true then override it with the one you want.
If ( CurretLanguage == "en-US" || CurrentLanguage == "en-AS" || ...)
{
Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = "en-US";
}
Yes, you can do it with single file by just using short language name. In your case, it should be Resources.en.resx for english and Resources.es.resx for spanish. You can refer here for language tags.

can't find translation in admin or language file in prestashop

I'm working on a prestashop that has been customized before. I'm trying to add a translation for a head title but can't translate it.
This is the line in the .tpl file :
<h4>{l s="saison" m="homefeatured"}</h4>
I tried to add myself this in the languages php files
$_MODULE['<{homefeatured}nop>homefeatured_62d8617d49c4cbd03664e39af6f0fe2f'] = 'SEASONS';
But it doesn't work and I can't find it it the admin > locations > translations > module name. I mean I see all other sentences that were here already but not this new one.
Dummy, I found the solution.
<h4>{l s="saison" m="homefeatured"}</h4>
becomes
<h4>{l s='saison' mod='homefeatured'}</h4>

Customize genmodel not to create plugin.xml, plugin.propeties and build.properties

I have a metamodel.ecore which I generate its Model Code from the genmodel file (Right click on metamodel.genmodel ==> Select Generate Model Code);
However, some additional files (plugin.xml, plugin.properties and build.properties) are created during code generation. Since I just need the model code for my special purpose (e.g. I don't want my current project to be converted to a plugin project), I want to prevent generating these files.
Any simple way to do that?
With the properties view opened, select the root element in your genmodel. You need to do the following changes in your genmodel:
Set All / Bundle Manifest to false. It will prevent MANIFEST.MF to be generated.
Set Model / Model Plug-in ID to empty string or use the button on the top right of the properties view named "Restore Default Value" to set it to null. It will prevent the generation of the files plugin.xml, plugin.properties and build.properties.
Set Template & Merge / Update Classpath to false. This one is optional but with your use case, you may want EMF to stop messing out with your .classpath file.

Pentaho report design customize program text

When I view my Pentaho report I want to change Output Type text to my own language. How can I do this?
To change the language of PUC (Assume that you want to change on PUC) first you need to add the necessary language to the web browser so that it is presented first on the list.
Then,
i) edit PUCLogin.jsp located in ...\server\biserver-ee\tomcat\webapps\pentaho\jsp
ii) search en_US - it can be in line 180 with the following content: <input type="hidden" name="locale" value="en_US">
iii) change "en_US" to "it_IT" (or necessary language)
iv) save and restart the browser and server
Hope this helps

prestashop mail customisation, and module translation

i have two question
1 - i installed referral program module , and i would like to customise the referralprogram-invitation.html mail template
so i putted the new template under : prestashop_root/themes/my_theme/modules/referralprogram/mails/referralprogram-invitation.html
but i doesn't work !
2 - i would like to add some extra text to the program page of referral program module
so i copied the file already included with the module under
prestashop_root/themes/my_theme/modules/referralprogram/translations/fr.php and I added the new text translation in this form
$_MODULE['<{referralprogram}prestashop>program_MD5'] = 'new text';
and it does not work?!!
You only forgot the language folder. Your mail templates must not be in :
prestashop_root/themes/my_theme/modules/referralprogram/mails/referralprogram-invitation.html
but in
prestashop_root/themes/my_theme/modules/referralprogram/mails/fr/referralprogram-invitation.html
If you want to add text to the program page, you must:
First, make a copy of the file : prestashop_root/modules/referralprogram/views/templates/front/program.tpl to prestashop_root/themes/my_theme/modules/referralprogram/views/templates/front/program.tpl
Then, you need to modify this file and add the text you want, where you want. To be translatable, your text must be added like this {l s='new text' mod='referralprogram'}.
Finally, you need to translate this text via the Localization > Traductions page of your BO and not directly in the fr.php file.
Do not hesitate if you need more information,
Paul.