Forum > Translations

One string not translated for unknown reason

<< < (3/5) > >>

Sieben:
Sorry, forgot about that...  :-[   But your setup works for me...?

Edith: including simple sample project, uses ResTrans package, however. Created with 2.0.10.


Roland57:

--- Quote from: Sieben on November 27, 2021, 06:08:13 pm ---But your setup works for me...?

--- End quote ---

Weird. For me it doesn't work. But it is not so important after all.  :)

Sieben:
Just included a working sample project with my last message... you might want to check whether there are any differences with your actual setup.

Fred vS:
Hello Roland.

Afaik, gettext does not like when msgid  begins with "":


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---msgctxt "aboutform.formcaption"msgid """Mater GUI %s\n""\n" 
Just begin with this:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---msgid "Mater GUI %s\n""\n"
And also in the translated po file, add the original code in msgid "here original code"

Also in the readme, remove the first empty line.

Included update po files, here it (seems) to work.

PS: Maybe  :-[

Fre;D

Roland57:

--- Quote from: Sieben on November 27, 2021, 06:35:39 pm ---Just included a working sample project with my last message... you might want to check whether there are any differences with your actual setup.

--- End quote ---

Thanks. Your project works here. And I see no difference with mine until now. I will continue to search.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version