Namespaces
Variants
Actions
(Difference between revisions)

Archived:Adding your own translation

Jump to: navigation, search
Line 6: Line 6:
 
## LANGUAGE_NAMES = {'en':'English', 'fi':'Finnish', 'fr':'French','de':'German', 'it':'Italian', 'es':'Spanish', 'se':'Swedish'}
 
## LANGUAGE_NAMES = {'en':'English', 'fi':'Finnish', 'fr':'French','de':'German', 'it':'Italian', 'es':'Spanish', 'se':'Swedish'}
 
# That's it! Now restart the server and you should see your new language available in Settings web page.
 
# That's it! Now restart the server and you should see your new language available in Settings web page.
 +
 +
Why not make your translation to other users? Upload it to http://mosh.nokia.com and add tags 'mymobilesite' and 'mobilewebserver'. Please also drop a note to us: https://secure.mymobilesite.net/contact/.
  
 
[[Category:Mobile Web Server]]
 
[[Category:Mobile Web Server]]

Revision as of 11:57, 14 February 2008

Here is how to translate MWS localization files into a new language.

  1. Find out all the _loc.py files, there is one in /htdocs/Framework and one for each web application in /htdocs/Web_Applications. Start by copying one of the file and edit your own translations to a new file. For example to create Swedish localization, you need to create mws_framework_se_loc.py file in /htdocs/Framework and similarly a _se_loc.py file for each web application.
  2. Edit file /htdocs/Framework/WebFrameworkConstants.py: add your new language into two places (here Swedish is added)
    1. SUPPORTED_LANGUAGES = ('en', 'fi', 'fr', 'de', 'it', 'es','se')
    2. LANGUAGE_NAMES = {'en':'English', 'fi':'Finnish', 'fr':'French','de':'German', 'it':'Italian', 'es':'Spanish', 'se':'Swedish'}
  3. That's it! Now restart the server and you should see your new language available in Settings web page.

Why not make your translation to other users? Upload it to http://mosh.nokia.com and add tags 'mymobilesite' and 'mobilewebserver'. Please also drop a note to us: https://secure.mymobilesite.net/contact/.

127 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved