Archived:Adding your own translation
hamishwillee
(Talk | contribs) m (Remove link to MOSH) |
hamishwillee
(Talk | contribs) m (Hamishwillee - Archive topic - MWS discontinued) |
||
| Line 1: | Line 1: | ||
| + | {{Archived|The 'Mobile web server' was discontinued in February 2010. See [[:Category:Mobile_Web_Server#Mobile web server discontinued, as of February 2010|here]] for more information.}} | ||
Here is how to translate MWS localization files into a new language. | Here is how to translate MWS localization files into a new language. | ||
Revision as of 08:26, 1 July 2011
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
The 'Mobile web server' was discontinued in February 2010. See here for more information.
The 'Mobile web server' was discontinued in February 2010. See here for more information.
Here is how to translate MWS localization files into a new language.
- 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.
- Edit file /htdocs/Framework/WebFrameworkConstants.py: add your new language into two places (here Swedish is added)
- SUPPORTED_LANGUAGES = ('en', 'fi', 'fr', 'de', 'it', 'es','se')
- 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.

