Keyword

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

  • Benny Braun
  • Benny Braun's Avatar Topic Author
  • Offline
  • New Member
More
3 years 5 months ago - 3 years 5 months 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: 3 years 5 months ago by Benny Braun.

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

More
3 years 5 months ago - 3 years 5 months ago #177071 by JoomlaWorks
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.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 3 years 5 months ago by JoomlaWorks. 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
3 years 5 months ago - 3 years 5 months 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: 3 years 5 months ago by Benny Braun.

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

More
3 years 5 months ago #177077 by JoomlaWorks
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.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Benny Braun
  • Benny Braun's Avatar Topic Author
  • Offline
  • New Member
More
3 years 5 months 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.

More
3 years 5 months ago #177086 by JoomlaWorks
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.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Benny Braun
  • Benny Braun's Avatar Topic Author
  • Offline
  • New Member
More
3 years 5 months ago #177108 by Benny Braun

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

More
3 years 5 months ago #177123 by JoomlaWorks
You're welcome.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum