0
I am making a website that will support several languages, but what makes it more difficult is the method of translation of each word/phrase of the site. In case I was thinking of making a system where words will be in a file . txt and assign them by codes example:
NOME.DO.SITE=Meu Site
CODIGO.1=Texto/Frase
But I didn’t want to put inside a PHP call, but only the code (NAME.DO.SITE): the PHP system identified the site code in the file. txt and replaces it with your Word/Phrase (My Website).
If anyone knows how to do that system, I’d be very grateful.
Check out https://stackoverflow.com/questions/4682800/how-to-use-po-pot-files-with-php
– Gabriel Santos
Search for internationalization with PHP, some php frameworks like Laravel already deal with this.
– lipesmile
Related: Translation dictionaries must use the original strings as keys?
– bfavaretto