Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing language related resources #949

Closed
hvelarde opened this issue Sep 11, 2015 · 11 comments · Fixed by plone/mockup#849
Closed

Missing language related resources #949

hvelarde opened this issue Sep 11, 2015 · 11 comments · Fixed by plone/mockup#849

Comments

@hvelarde
Copy link
Member

This 404 status codes are returned when creating a new News Item on a site in Brazilian Portuguese language:

selection_004

@claytonc
Copy link
Member

claytonc commented Oct 6, 2015

Plone is not properly translating into Portuguese Brazil.

@claytonc
Copy link
Member

claytonc commented Oct 6, 2015

In "self.request ['LANGUAGE']" always behind "pt-br" for javascripts

@claytonc
Copy link
Member

claytonc commented Oct 9, 2015

The problem of translation in the TinyMCE editor in this file "mockup/patterns/tinymce/pattern.js".

I did some modifications but do not know if it's the ultimate solution.

The javascript "pattern.js" always looking for translations with "en-us" and the file is "en_US".

An error was found when invoked "self.options.tiny.language" the value is undefined.

pattern.js.diff.txt

@claytonc
Copy link
Member

claytonc commented Oct 9, 2015

And in "/mockup/js/i18n.js"

Widgets (Upload) in folder_contents translated.

@@ -64,6 +64,9 @@ define([
     };

     self.getUrl = function(domain, language) {
+      if (language.split('-').length > 1) {
+        language = language.split('-')[0] + '_' + language.split('-')[1].toUpperCase();
+      }
       return self.baseUrl + '?domain=' + domain + '&language=' + language;
     };

image-tiny
imagem-folder_contents

@jensens
Copy link
Member

jensens commented Jun 30, 2016

is this still an issue?

@hvelarde
Copy link
Member Author

hvelarde commented Jul 1, 2016

we need to check again when 5.0.5 is out.

@davilima6
Copy link
Member

davilima6 commented Jul 5, 2016

Yes, it still happens in coredev, which currently uses p.a.content master (in case that's related to plone/plone.app.content#77).

tiny-js-error

@malthe
Copy link
Member

malthe commented Aug 23, 2017

This is still relevant.

It's looking for things like en_EN.js and sv_SV.js (the latter should be sv_SE.js).

@agitator
Copy link
Member

agitator commented Sep 7, 2017

same here with ch_DE, although it's "only" the users selected lang, the site itself runs und plain de

@lyralemos
Copy link

Just installed 5.1.0.1 and this is still a issue.

@thet
Copy link
Member

thet commented Jun 7, 2018

@malthe checked against your sv_SE comment - in plone.app.locales there is no sv_SE variant - only sv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants