Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Different Languages  (Read 1421 times)

0 Members and 1 Guest are viewing this topic.

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 85
    • SciFiKriss' Ramblings
Different Languages
« 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 :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4544
    • Windsurf.me
Re: Different Languages
« Reply #1 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 85
    • SciFiKriss' Ramblings
Re: Different Languages
« Reply #2 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 :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4544
    • Windsurf.me
Re: Different Languages
« Reply #3 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 85
    • SciFiKriss' Ramblings
Re: Different Languages
« Reply #4 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 :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4544
    • Windsurf.me
Re: Different Languages
« Reply #5 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
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 85
    • SciFiKriss' Ramblings
Re: Different Languages
« Reply #6 on: January 11, 2018, 01:34:41 pm »

Woohoo!  Thanks for that!


Kriss :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)

keks190

  • Coppermine newbie
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 9
Re: Different Languages
« Reply #7 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?
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Online Online
  • Posts: 872
Re: Different Languages
« Reply #8 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
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 21 queries.