National Flags

Translation problem - National Flags

Translation problem

by null2 » Thu Dec 03, 2015 11:55 am

This extension is great. Thank you for develop it.

I have an idea to make it more "translatable":

Name of countries are in English and stored in database. We are not able to use different names to different languages which we use in forums.

So, I had to edit names directly in database to translate them to more used language in my forum. I know these names are created based in datas found in file ext/rmcgirr83/nationalflags/migrations/m2_initial_data.php but should be in ext/rmcgirr83/nationalflags/language/en/common.php. In this way, we could translate countries names too.

Maybe in a future update?
Sorry for my bad english. I'm from USA.
User avatar
null2
Registered User
Posts: 522
Joined: Wed Jan 20, 2010 11:03 am

Re: Translation problem

by RMcGirr83 » Thu Dec 03, 2015 5:27 pm

And what would happen if a user added a flag?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22105
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Translation problem

by null2 » Thu Dec 03, 2015 8:45 pm

Is it possible???

May an user add a new flag?
Sorry for my bad english. I'm from USA.
User avatar
null2
Registered User
Posts: 522
Joined: Wed Jan 20, 2010 11:03 am

Re: Translation problem

by RMcGirr83 » Fri Dec 04, 2015 12:08 pm

Admin can add a flag via the ACP
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22105
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Translation problem

by null2 » Fri Dec 04, 2015 1:48 pm

So, Admin should add translation too.
Sorry for my bad english. I'm from USA.
User avatar
null2
Registered User
Posts: 522
Joined: Wed Jan 20, 2010 11:03 am

Re: Translation problem

by RMcGirr83 » Fri Dec 04, 2015 4:26 pm

Uhmm, yeah I highly doubt an admin would do that.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22105
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Translation problem

by null2 » Fri Dec 04, 2015 10:25 pm

I think you meant add a whole translation to forum. If you have translation files, everyone may translate it, as we do in others extensions.

Remove countries names out of database and put them in ext/rmcgirr83/nationalflags/language/en/common.php. In this way, a lot of people will send you translations in their languages.

If someone add a new language to forum, just translate this file to the new language (if its not there already) or someone else will do it.
Sorry for my bad english. I'm from USA.
User avatar
null2
Registered User
Posts: 522
Joined: Wed Jan 20, 2010 11:03 am

Re: Translation problem

by RMcGirr83 » Sat Dec 05, 2015 1:22 am

This will not happen as it will produce more problems for users who will then come to me for resolutions. You are free to take the code and modify it as you see fit to suit your needs.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22105
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Translation problem

by karbiko » Thu Dec 31, 2015 8:16 pm

So, here is the spanish translation of the countries

First, you must uninstall completely the extension and then:

Instalation:
1.- With National Flag ext disabled
2.- Upload this add-on into ext directory of your phpBB board
3.- Enable the extension
4.- Clear Cache
Now, in extensions tab, you can see flags with spanish countries' names.

Happy new year!!

---------------------------------------------------------------

Aquí está la traducción al castellano de la lista de países

Primero tienes que desinstalar la extensión y luego, para al instalarla :

1.- Con la extensión National Flags deshabilitada
2.- Subir el archivo adjunto
3.-Habilitar la extensión
4.- Limpiar la caché

Ahora, si entras a la pestaña Extensiones, puedes ver las banderas nacionales con los nombres de los países en castellano.

¡Feliz año nuevo!

National-Flags-Contrib-ES.zip
Listado de países en castellano
(4.91 KiB) Downloaded 78 times
Last edited by karbiko on Fri Jan 08, 2016 7:47 pm
User avatar
karbiko
Registered User
Posts: 97
Joined: Thu Jul 24, 2008 8:47 pm
Location: La Isla Bonita

Re: Translation problem

by RMcGirr83 » Fri Jan 01, 2016 10:45 am

Don't believe this will work as you will still have the version in the database so the migration file will never run.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22105
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr