Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

Where can the long language names be entered?

Started by Andi Becker 5 years ago · 5 replies · 426 views
5 years ago

We need to add some until now not existing languages to GRAV and the translations work fine but where can we add the long Language Name so that the two-letter abbreviation does not show up in the dropdown and instead the long name is showing up of a language?

5 years ago

@Andi, I think you will have to create a feature request at the repo of Grav.

The language codes with names and native names are hardcoded in /system/src/Grav/Common/Language/LanguageCodes.php.

Translations for a specific language are defined in /system/languages

You'll have to create the translations for Admin and Core yourself though using https://crowdin.com/project/grav-admin and https://crowdin.com/project/grav-core.

See sample request.

last edited 10/16/21 by pamtbaau
5 years ago

uarg - that is not good - uff - why hard coded.

We need Swahili (Kiswahili) - sw and Myanmar (Burmese) - my and some others might follow too. The translation won't work in crowdin as those languages are missing! So we had already to translate all those locally. But the only problem was persisting with the iso code and not the language longtext. I will see if I can create a pull request

5 years ago

@Andi, I'm not familiar with the ins-and-outs of Crowdin. You might consider contacting the Grav team.

5 years ago

Yep Thanks - I made pullrequests as we have people here which were working on the translations already but the problem with the language names wasn't solved. - Let's see.

I need to check out crowdin if that is at all suitable for bigger translations, and also if all plugins which we are using are actually available there too. Thanks for the help.

5 years ago

I just checked in Crowdin - for sure we won't use that as it is way to complicated and harming a natural workflow of doing professional translations. There is no way to list all translations in a simple list and then go through it one by one, instead you always have to change even the view point on the screen and click click and click - much to complicated.

Right now our translations take place here locally and easily with our multinational team - no training necessary as all know how to work in a table ;) and you have like in coding also the numbers of all rows just beside it so you can compare again and again with the original translation - much better and easier.

And much faster too!

I made a pull request!

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 197 2 months ago
Themes & Styling · by Ian, 2 months ago
3 92 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 454 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 47 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 127 3 months ago