Skip to content

Commit

Permalink
fix namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
the-turk committed May 22, 2020
1 parent ceec15d commit 1c94c20
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions js/dist/forum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/forum.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions js/src/forum/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ function categorizeImages(element) {
});
}

app.initializers.add('fancybox', app => {
app.initializers.add('the-turk-fancybox', app => {
$.fancybox.defaults.toolbar = false;
$.fancybox.defaults.smallBtn = true;
$.fancybox.defaults.lang = app.translator.locale;
$.fancybox.defaults.i18n[app.translator.locale] = {
NEXT: app.translator.trans('fancybox.forum.next'),
PREV: app.translator.trans('fancybox.forum.prev'),
CLOSE: app.translator.trans('fancybox.forum.close'),
ERROR: app.translator.trans('fancybox.forum.error')
NEXT: app.translator.trans('the-turk-fancybox.forum.next'),
PREV: app.translator.trans('the-turk-fancybox.forum.prev'),
CLOSE: app.translator.trans('the-turk-fancybox.forum.close'),
ERROR: app.translator.trans('the-turk-fancybox.forum.error')
}

extend(CommentPost.prototype, 'config', function(x, isInitialized, context) {
Expand Down
2 changes: 1 addition & 1 deletion locale/en.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fancybox:
the-turk-fancybox:
forum:
next: Next
prev: Previous
Expand Down
2 changes: 1 addition & 1 deletion locale/tr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fancybox:
the-turk-fancybox:
forum:
next: Sonraki
prev: Önceki
Expand Down

0 comments on commit 1c94c20

Please sign in to comment.