forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 language => Topic started by: Dankriss on January 11, 2018, 10:50:11 am

Title: Different Languages
Post by: Dankriss on January 11, 2018, 10:50:11 am
Hi guys


Are we going to have different languages available in the future?  Or is there somewhere I can download them and add to the gallery?


Thanks in advance


Kriss :)
Title: Re: Different Languages
Post by: Phill Luckhurst on January 11, 2018, 12:58:49 pm
Languages are never easy. We have language files and the software complies to current standards. However, to create those language files requires translators. People from the community volunteer their time to create these. Hopefully, we can get contributions to add more languages as time passes. Currently there are German, English (UK and US) and French speakers on the team so hopefully those translations can be taken care of.
Title: Re: Different Languages
Post by: Dankriss on January 11, 2018, 01:00:16 pm
I don't have the UK English on mine just the US version... is there somewhere to download it?


Kriss :)
Title: Re: Different Languages
Post by: Phill Luckhurst on January 11, 2018, 01:18:17 pm
Still to be created. Feel free to take a look at the CPG 1.5.x version (lang/english.gb.php) and you will see there are only about 30 lines that are different. Comparing the 1.6.x version of english.php to the 1.5.x version there are a few new strings. The 1.5.x file would be a good starting point, many are simple changes in date and time formats. If you are not in a hurry I can probably schedule some time in next week to do it. If you are in a hurry the work is very simple and would probably take you less than an hour.

Here is what I would do.

Copy the 1.5.x lang/english.gb.php file into your /lang folder on cpg 1.6.x
Edit the header section of the new file, the contributor name etc in a plain text editor.

On your desktop compare both the 1.5.x and 1.6.x /lang/english.php files using any file compare tool. You will easily see any language strings that have been added. There are not too many. Take a look and see if any need translating from US English to GB English. As a guess there are probably only a couple.

Copy those lines from the 1.6.x file to your new 1.6.x english.gb.php file then edit the translation part of the string as required.

Test your new file, then share your work here.
Title: Re: Different Languages
Post by: Dankriss on January 11, 2018, 01:20:53 pm
Thanks...


Just tried the who is online plugin and it didn't work... ahh well once 1.6 is up and running hopefully they will be made compatible..


Btw reason I am running 1.6 my server is PHP 7 now.. :)


Kriss :)
Title: Re: Different Languages
Post by: Phill Luckhurst on January 11, 2018, 01:33:26 pm
Not sure which plugin you are talking about. If it is the onlinestats one it is updated and available here - https://github.com/coppermine-gallery/cpg1.6.x-plugins
Title: Re: Different Languages
Post by: Dankriss on January 11, 2018, 01:34:41 pm
Woohoo!  Thanks for that!


Kriss :)
Title: Re: Different Languages
Post by: keks190 on February 01, 2018, 11:15:23 am
I have the style "acidtech_tiger" would like to insert the languages {LANGUAGE_SELECT_LIST}

in the file "theme.php" how and where does it work?
Title: Re: Different Languages
Post by: ron4mac on February 01, 2018, 01:08:56 pm
Just place {LANGUAGE_SELECT_LIST} anywhere that you would like in your theme's template.html file.
http://documentation.coppermine-gallery.net/en/theme_template.htm#theme_template_language_select_flags
Title: Re: Different Languages
Post by: Siava on August 16, 2020, 12:09:03 am
Hi!
A few month ago I added Russian translate to pull requests of 1.6.08 version CPG.
https://github.com/coppermine-gallery/cpg1.6.x/pull/49
Title: Re: Different Languages
Post by: Phill Luckhurst on August 27, 2020, 11:55:58 pm
Hi!
A few month ago I added Russian translate to pull requests of 1.6.08 version CPG.
https://github.com/coppermine-gallery/cpg1.6.x/pull/49

Excellent work. I have marked your account as translator.
Title: Re: Different Languages
Post by: Guitaristka on January 26, 2021, 07:07:43 pm
cpg1.6 - Is there a Russian language for the version?
Title: Re: Different Languages
Post by: ron4mac on January 26, 2021, 10:00:17 pm
cpg1.6 - Is there a Russian language for the version?
You can use the language file contributed by Siava (above).
https://github.com/SiavaRu/cpg1.6.x/tree/patch-2/lang
Title: Re: Different Languages
Post by: Guitaristka on January 27, 2021, 06:49:33 am
You can use the language file contributed by Siava (above).
https://github.com/SiavaRu/cpg1.6.x/tree/patch-2/lang
thank you very much!
Title: Re: Different Languages
Post by: Guitaristka on January 27, 2021, 07:40:39 am
You can use the language file contributed by Siava (above).
https://github.com/SiavaRu/cpg1.6.x/tree/patch-2/lang

The file itself opens russian.php.  When you put the choice of language
"Cannot retrieve contributors at this time"