Search…

X3 Photo Gallery Support Forums

Search…
 
rokudamerlin
Experienced
Topic Author
Posts: 161
Joined: 01 Dec 2012, 02:00

Translation (Important!)

14 Sep 2017, 02:49

hey,
i have the same problem since first x3 version .. and you have say it comes later an option for this ..

i have now 2 comercial websites on x3 and my customer all from germany ..

the date text is ever in english and the album text.. pls add a option to edit this .. 

wish text:  time text, albums, pictures !!

is important .. next week i have a big event and i want that go the people to my website .. in english thats not good !

greez
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Translation (Important!)

14 Sep 2017, 05:55

Sorry, but when done properly, we need to create multiple language files. The we need an editor in panel to edit and create new languages, and then each language file needs to be loaded properly into X3. That's why it's still in our TODO list.

In the meantime, you can use this javascript fix. Just copy paste the below into settings > custom > custom javascript, and edit the values of 'Albums' and 'Images':
Code
function x3_load_page(){
  var ob = {
    'folder_amount': 'Albums',
    'amount': 'Images'
  }
  
  $.each(ob, function(key, val) {
    $('.' + key).each(function() {
      var el = $(this),
          child = el.children(),
          item = child.length ? child : el;
      item.html(parseInt(item.html()) + ' ' + val);
    });
  });
}
If you want to edit TIME, this is more complex, because it contains many possibilities depending on how long ago the date is. However, there is an easy fix for this in the link below:
https://forum.photo.gallery/viewtopic.p ... 305#p41754
 
rokudamerlin
Experienced
Topic Author
Posts: 161
Joined: 01 Dec 2012, 02:00

Re: Translation (Important!)

14 Sep 2017, 06:48

thanks
VektorStyle.de
Graphic - Web - Printdesign | X3
 
rokudamerlin
Experienced
Topic Author
Posts: 161
Joined: 01 Dec 2012, 02:00

Re: Translation (Important!)

14 Sep 2017, 06:58

For all other users from Germany : ;)
Code
function x3_load_page(){
  var ob = {
    'folder_amount': 'Alben',
    'amount': 'Fotos'
  }
  
  $.each(ob, function(key, val) {
    $('.' + key).each(function() {
      var el = $(this),
          child = el.children(),
          item = child.length ? child : el;
      item.html(parseInt(item.html()) + ' ' + val);
    });
  });
}

function x3_load(){
  // German
  jQuery.timeago.settings.strings = {
    prefixAgo: "vor",
    prefixFromNow: "gerade",
    suffixAgo: "hochgeladen",
    suffixFromNow: "hochgeladen",
    seconds: "einer Sekunde",
    minute: "einer Minute",
    minutes: "%d Minuten",
    hour: "einer Stunde",
    hours: "%d Stunden",
    day: "einem Tag",
    days: "%d Tagen",
    month: "einem Monat",
    months: "%d Monaten",
    year: "einem Jahr",
    years: "%d Jahre"
  };
}
VektorStyle.de
Graphic - Web - Printdesign | X3