Storing content in multiple languages? For instance. English, French, German

How can I store (and submit) text on a website intended for worldwide use with multiple languages? The content is mainly presented in the form of 500 articles with higher text, although I will also need to translate tiny fragments of text on each page (for example, “print this article” or “return to the menu”).

I know that there are several CMS packages that process several languages, but I also need to integrate with our existing ASP systems, so I ignore such decisions.

I have one problem: Google should be able to find pages, even for foreign users. I'm less concerned about issues with processing dates and currencies.

I'm worried that, left on my own devices, I will come up with a way to do this, which works, but will ultimately lead to disaster! I want to know what professional solutions you actually used in real projects, and not ideas! Many thanks.


I looked at the .resx files, but felt that they were unsuitable for everyone except the most trivial translation solutions (I will clarify if anyone wants to find out).

Google will help me with the translation of the text, but will not store / represent it.

Has anyone worked on a multilingual project that relied on its own presentation code?


Any thoughts on serving content in the following ways, and which is better?

( URL-, )

+3
7

- google.

, , -.

, , :

<%$ Resources: LanguageProvider, Path/To/Localisation %>

web.config:

<globalization resourceProviderFactoryType="FactoryClassName, AssemblyName"/>

FactoryClassName ResourceProviderFactory . "//"

- , .

.

+5

, GNU Gettext - , .

:

, Gettext , ++/MFC J2EE/JSP, . / , .

+2

.Net, (.resx). MSDN .

+1

, .

RESX . , .Net, , .NET Framework .

​​ , -. , , .

:

| | , | |

, , - , (, ).

, : (, , , ..) , , . , :

: | | | |

: | | ,

. , , , ( KISS).

+1

, Google , .

0

.

, ( ), Python 3 script, " " ( Apache Accept-Language).

, Python - . , Python 3, script HTML- ( User-agent), . , :)

, . , , , script:)

0

Regarding the format of the URL, I use site.com/content/example.fr, as it allows Apache to negotiate the language in case someone asks /content/example, and the browser says that he likes French. When you do this, Apache also adds .htmlor something else as a bonus.

So, when the request for exampleand I have files

example.fr
example.en
example.vi

Apache will automatically continue working with example.vifor a person with a Vietnamese-configured browser or example.enfor a person with a German-configured browser. Pretty helpful.

0
source

Source: https://habr.com/ru/post/1696959/


All Articles