Gettext: Is it a good idea for the message ID to be the english text?

后端 未结 11 1369
春和景丽
春和景丽 2020-12-07 16:45

We\'re getting ready to translate our PHP website into various languages, and the gettext support in PHP looks like the way to go.

All the tutorials I see recommend

11条回答
  •  悲哀的现实
    2020-12-07 17:29

    In a word don't do this.

    The same word/phrase in English can often enough have more than one meaning, and each meaning a different translation.

    Define mnemonic ids for your strings,and treat English as just another language.

    Agree with other posters that id numbers in code are a nightmare for code readability.

    Ex localisation engineer

提交回复
热议问题