Menu

Home

Erik Hänel
There is a newer version of this page. You can find it here.

How to write a translation for NumeRe

This is a short introduction in writing a translation for NumeRe. All you need is a simple text editor, the basic language files and a bunch of time. If you have open questions, please contact the administrator of this project.

Project Members:

A translation file

A translation file contains three major parts: comments (indicated by a # at the beginning of a line), identifiers (usually in uppercase letters and at the beginning of a line) and the actual language strings (after the identifiers and a additional =, probably containing some place holders %%1%% or %%COMMON_YES_NO%%):

#This is a comment
THIS_IS_A_IDENTIFIER=This is the actual language string and a %%PLACEHOLDER%%
  • Place holders containing only numbers will be replaced during the execution of NumeRe and with the relevant message part.
  • The others will be replaced during language loading (at start up) with the language strings of the referenced identifiers.

NumeRe contains two major language files: <>/lang/main.nlng and <>/lang/error.nlng. The first contains all the language strings for usual interaction, whereas the second contains all error messages. There are three further files prefixed with tmpl_*.nlng. These contain templates for scripts, plugins and files. Note, that the comments in these files will be copied to the generated file.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.