- Posts: 8
COMMUNITY FORUM
- Forum
- Free Joomla Extensions & Templates
- Simple Image Gallery
- Changing the texts for pop up buttons to German (language file?)
Changing the texts for pop up buttons to German (language file?)
- Benny Braun
- Topic Author
- Offline
- New Member
Less
More
4 years 2 months ago - 4 years 2 months ago #177068
by Benny Braun
Changing the texts for pop up buttons to German (language file?) was created 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.
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: 4 years 2 months ago by Benny Braun.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6219
4 years 2 months ago - 4 years 1 month ago #177071
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Changing the texts for pop up buttons to German (language file?)
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:
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.
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: 4 years 1 month ago by JoomlaWorks. Reason: Updated snippet to use single quotes
Please Log in or Create an account to join the conversation.
- Benny Braun
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
4 years 1 month ago - 4 years 1 month ago #177074
by Benny Braun
Replied by Benny Braun on topic Changing the texts for pop up buttons to German (language file?)
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
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: 4 years 1 month ago by Benny Braun.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6219
4 years 1 month ago #177077
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Changing the texts for pop up buttons to German (language file?)
The double quotes cause the issue. Use this instead:
That should do the job.
$.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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
4 years 1 month ago #177080
by Benny Braun
Replied by Benny Braun on topic Changing the texts for pop up buttons to German (language file?)
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
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.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6219
4 years 1 month ago #177086
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Changing the texts for pop up buttons to German (language file?)
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
4 years 1 month ago #177108
by Benny Braun
Replied by Benny Braun on topic Changing the texts for pop up buttons to German (language file?)
Thx!
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6219
4 years 1 month ago #177123
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Changing the texts for pop up buttons to German (language file?)
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.
- Forum
- Free Joomla Extensions & Templates
- Simple Image Gallery
- Changing the texts for pop up buttons to German (language file?)