Octobercms: how to localize path? - localization

I have a multilingual website. The localization plugin seems to translate only the content, but leaves a path in the default language. How do I change a path to the selected language?

One solution is to use the Translate Extended plugin https://octobercms.com/plugin/excodus-translateextended
This plugin can prefix all routes with SEO-friendly locale short code like :
mysite.ch/fr/contact
mysite.ch/de/kontact

Related

Allowing user to enter French,Spanish and Korean language in content of Umbraco input Control

We are using Umbraco web application in English language. We need to add
French,Spanish and Korean language in our application where we should be allow user to type and add content in French,Spanish and Korean language.
Question : How we can allow user to input content in French,Spanish and Korean language . Note* : Default language of system is English.
Please help me to get out of this.
Thanks in advance.
Currently Umbraco doesn't have built in language variants - so the classic way to do it is to create language specific "sites" as described here: https://our.umbraco.com/documentation/tutorials/multilanguage-setup/
A different solution could be to use the Vorto package. Vorto wraps itself around your existing datatypes, allowing you to put in an extra "layer" so every property can have different values/settings for each language in your site.
There's a link to it here - with instructions on how to get started using it:
https://our.umbraco.com/packages/backoffice-extensions/vorto/

Tornado Localisation, set default language

I want to set my default language in my web client to be 'de' when the browser language is 'en' or 'en_US'.
I am using tornado localisation.
I tried this solution, tornado.locale.set_default_locale('de') but it still shows the web client in english.
The default language is primarily used to tell Tornado what language the text in your code is: when the current language is the default, no translation files are used. If the text in your code is English but you want to use the German translation files no matter what the browser settings say (I'm guessing here because you didn't include much detail about what your setup is), you should leave the default language as "en" but override RequestHandler.get_browser_language() to return "de".

Adding a new locale to a Dojo widget

I use the DojoX Enhanced Grid widget, which comes with translations for a few languages(locales) built in:
See http://svn.dojotoolkit.org/src/tags/release-1.6.1rc2/dojox/grid/enhanced/nls/
If I want to add a new locale (let's say cn (chinese) or ru (russian)), how do I do that?
If I were hosting Dojo locally, that would be rather trivial (I would just add a folder under the dojox/grid/enhanced/nls/ directory for the locale of my choice and provide translations over there), but in my case, I have dojo loaded from a CDN.
That is quite easy. You can configure many global properties (including locale) via dojo config object, before dojo.js is loaded. http://dojotoolkit.org/documentation/tutorials/1.8/dojo_config/
Found out that the correct locale code for chinese is zh, not cn. Both chinese and russian are already supported by dojox/grid.
I don't think there's a way to add a new language, (say Hindi or Latin), without hosting dojo locally. Even with dojo hosted locally, it's not a trivial matter of adding a new folder for that locale; there's something more to be done with it that I don't know.

Does Grails use different localization messages based on domains?

I have the following .properties files in a new Grails 2.1.0 app:
messages.properties
messages_sv.properties
Will the values from messages_sv.properties be used when a user hits our www.mysite.se URL, or are the messages loaded based purely on the browser’s language settings?
Messages are resolved by locale independently of the URL. If you’d like to change the locale, take a look at the the i18n documentation to get a better understanding of internationalization in Grails.

How to change TinyMCE language in Umbraco

I'm using Umbraco 4.9. I've downloaded a language pack and installed it in my Umbraco's TinyMCE. I suppose there is a tag in tinyMceConfig.config file that defines the language for richtexts, but I can't find anything. Does anyone know about that?
UPDATE:
I tried:
<config key="language">en</config>
but even the default en language option makes richtext editor disapear.
The language of the WYSIWYG text editor is controlled by the user login.
Under the user select the language you would like to use for the backend of Umbraco.
Out of the box it supports:
Danish
German
English (uk)
Spanish
French
Italian
Korean
Dutch
Norwegian
Swedish (se)
Swedish
If the language you need is not listed there, you have a couple of options. The first option is to create a whole new translation of the Umbraco backend, this involves editing Umbraco translation files etc and and is reasonable sized task.
If you just want the TinyMCE editor translated you can hack the JS so that it uses your translation file instead of the default.
To do this you need to rename a couple of JS files and update one. Basically the principal is that you replace one of the existing languages i.e. en or fr with your own.
There are instructions on how to do this on the post on our.umbraco.org
I don't recommend this approach, if you are looking for new full translation of the backend then why not reach out on the our.umbraco.org forum and see if anyone has already done the translation you are looking for or would be willing to help.

Resources