Keyword

Changing the texts for pop up buttons to German (language file?)

  • Benny Braun
  • Benny Braun's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 6 days ago - 2 weeks 5 days ago #177068 by Benny Braun
Hello,

is there a chance to get the German language files or don't they exist? Where can I change the texts or translate them? I want to change the buttons in the fancy pop up and the texts under the image ("Image x of x" and "You are viewing the image ...").

Is the also to delete the "You are viewing the image ..." phrase?

Thx in advance.
Last edit: 2 weeks 5 days ago by Benny Braun.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 5 days ago - 2 weeks 4 days ago #177071 by Fotis
There is no ready-made translation for the plugin parameters and some messages in the frontend. Feel free to contribute that if you want here: www.transifex.com/joomlaworks/simple-image-gallery/

To translate the messages in Fancybox specifically, do this.

Edit this file: github.com/joomlaworks/simple-image-gallery/blob/master/plugin/jw_sig/includes/js/jquery_fancybox/popup.php#L29

...and right AFTER "$(document).ready(function() {" add the following:
$.fancybox.defaults.i18n.de = {
    CLOSE: 'Close',
    NEXT: 'Next',
    PREV: 'Previous',
    ERROR: 'The requested content cannot be loaded.<br/>Please try again later.',
    PLAY_START: 'Start slideshow',
    PLAY_STOP: 'Pause slideshow',
    FULL_SCREEN: 'Full screen',
    THUMBS: 'Thumbnails',
    DOWNLOAD: 'Download',
    SHARE: 'Share',
    ZOOM: 'Zoom'
};

$.fancybox.defaults.lang = 'de';

Make sure you rename the English strings to German and you should be ready.

I'll make sure to integrate language support for Fancybox in the main plugin language file by the next update.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member
Last edit: 2 weeks 4 days ago by Fotis. Reason: Updated snippet to use single quotes

Please Log in or Create an account to join the conversation.

  • Benny Braun
  • Benny Braun's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 4 days ago - 2 weeks 4 days ago #177074 by Benny Braun
I already tried that because of another post here.

Unfortunately I get a syntax error ... I tried to add the code and replace it with the existing one. both times unfortunately the same result with syntax error.

Please see line 30 and 34: gyazo.com/b7a3c326d25543004a2eb556cbb2bd78
Last edit: 2 weeks 4 days ago by Benny Braun.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 4 days ago #177077 by Fotis
The double quotes cause the issue. Use this instead:
$.fancybox.defaults.i18n.de = {
    CLOSE: 'Close',
    NEXT: 'Next',
    PREV: 'Previous',
    ERROR: 'The requested content cannot be loaded.<br/>Please try again later.',
    PLAY_START: 'Start slideshow',
    PLAY_STOP: 'Pause slideshow',
    FULL_SCREEN: 'Full screen',
    THUMBS: 'Thumbnails',
    DOWNLOAD: 'Download',
    SHARE: 'Share',
    ZOOM: 'Zoom'
};

$.fancybox.defaults.lang = 'de';

That should do the job.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Benny Braun
  • Benny Braun's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 4 days ago #177080 by Benny Braun
Thx a lot! Really great support for a free plugin. Will rate you on extension.joomla.org.

One more thing, how can I change the texts underneath the pic like: gyazo.com/71c4c3c4b643a83dbfe3930851beef10

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 4 days ago #177086 by Fotis
That string (and others) are inside /administrator/language/en-GB/en-GB.plg_content_jw_sig.ini. Copy that file into /administrator/language/de-DE/de-DE.plg_content_jw_sig.ini and translate to German.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Benny Braun
  • Benny Braun's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 2 days ago #177108 by Benny Braun

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 2 days ago #177123 by Fotis
You're welcome.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum