Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Locales Forum - 8

All issues regarding locales, including error reports, requests and offerings of new locales
683 posts | Last Activity on 03-08-2020 17:07 by RobiNN
RobiNN
Re: Duplicated paragraphs in locale\English\admin\members_email.php https://github.com/php-fusion/PHP-Fus...dc458292df
alqutob
Re: Duplicated paragraphs in locale\English\admin\members_email.php Duplicated paragraphs in file PHP-Fusion 8.00.50\files\locale\English\admin\members_email.php

Code

$locale['email_deactivate_message'] = "Hello [USER_NAME],
\r\nIt has been [DEACTIVATION_PERIOD] day(s) since you last logged in at [SITENAME]. Your user has been marked as inactive but all your account details and content remains intact.
\r\n
To reactivate your account simply click the following link: [REACTIVATION_LINK]
\r\nRegards,
\r\n[SITEUSERNAME]";
$locale['email_deactivate_message'] = "Hello [USER_NAME],
\r\nIt has been [DEACTIVATION_PERIOD] day(s) since you last logged in at [SITENAME]. Your user has been marked as inactive but all your account details and content remains intact.
\r\n
To reactivate your account simply click the following link: [REACTIVATION_LINK]
\r\nRegards,
\r\n[SITEUSERNAME]";



And

Code

$locale['email_ban_message'] = "Hello [USER_NAME],
\r\nYour account on [SITENAME] has been banned by [ADMIN_USERNAME] because of the following reason:
\r\n
[REASON]
\r\nIf you want more information about this ban, please, contact the site administrator at [SITENAME].
\r\nRegards,
\r\n[SITEUSERNAME]";
$locale['email_ban_message'] = "Hello [USER_NAME],
\r\nYour account on [SITENAME] has been banned by [ADMIN_USERNAME] because of the following reason:
\r\n
[REASON]
\r\nIf you want more information about this ban, please, contact the site administrator at [SITENAME].
\r\nRegards,
\r\n[SITEUSERNAME]";

RobiNN
RobiNN 09-03-2019 14:31, 1 year ago
Re: wrong locales in forum buttons attaching images Compare locales with English. In English is OK.
helmuth
helmuth 08-03-2019 07:48, 1 year ago
Re: wrong locales in forum buttons attaching images where to fix this problem?
helmuth
helmuth 08-01-2019 14:47, 2 years ago
Re: Missing locale on contact page Still not fixed

In which locale file do I find the phrase?

is it loaded from here: https://github.com/php-fusion/PHP-Fus...rimage.php
lines 1381-1383

And why are there two fields (English and Danish) to enter the security code?

Merged on 01/08/2019:
Sorry ... is fixed

forgot to upload the file ;-)
RobiNN
RobiNN 07-01-2019 18:31, 2 years ago
Re: Missing locale on contact page Fixed.
helmuth
helmuth 07-01-2019 18:05, 2 years ago
Re: Missing locale on contact page contact.php in Danish language contains English words

the phrase: Type the text: is not present in the locale files

where to find it?
Falk
Falk 07-01-2019 12:11, 2 years ago
Re: setlocale(LC_TIME That is correct.
RobiNN linked how the locale/lang/global.php should be set and you returned a faulty line ( ISO ) together with your example of the issue.
Update your global with above and make sure all is converted to UTF-8 and it should fix it for you.
helmuth
helmuth 07-01-2019 11:35, 2 years ago
Re: setlocale(LC_TIME the right collation in the database is that:

utf8_unicode_ci

or should it be another?
Falk
Falk 06-01-2019 10:38, 2 years ago
Re: setlocale(LC_TIME You need
Code
setlocale( LC_ALL, "da", "dan", "da_DK", "da_DK.DK.UTF-8", "danish" );


Also the files must be UTF-8 as well as the database. In some instances you can get away with using Ansi if both files and Locale is set to Windows-1252 ( Ansi ).
But I would never recommended to try and cross breed them formats.

It boils down to 3 things
Database = UTF-8
Locale settings in the global = UTF-8
File format of the actual render and locale files = UTF-8
helmuth
helmuth 05-01-2019 17:20, 2 years ago
Re: setlocale(LC_TIME http://kidsvolley-kerteminde.dk/v8/ne...8/news.php

look at footer at the above link

and compare with http://kidsvolley-kerteminde.dk/news.php

settings in global.php:

setlocale( LC_ALL, "da", "dan", "da_DK", "da_DK.ISO8859-1", "danish" );
setlocale(LC_TIME, "da","DA"); // Linux Server (Windows may differ)
RobiNN
RobiNN 05-01-2019 15:08, 2 years ago
Re: setlocale(LC_TIME https://github.com/php-fusion/PHP-Fus...al.php#L20
helmuth
helmuth 05-01-2019 15:00, 2 years ago
Re: setlocale(LC_TIME this is the English setting in global.php

setlocale(LC_TIME, "en_GB.utf8"); // Linux Server (Windows may differ)

where to find the correct Danish setting? I've been googling and searching and searching and googling with no result :-(
helmuth
helmuth 05-01-2019 07:18, 2 years ago
Re: UTF-8 Conversion Tools Thread I wondered if there was a similar tool for macOS and found this: https://docs.moodle.org/36/en/Convert...s_to_UTF-8
C
Chan 05-01-2019 02:27, 2 years ago
Re: Globale and one word locale Ok, we will code it in full sentence instead. It should not be used as part of a larger locale construct. Thank you for letting us know.
Falk
Falk 04-01-2019 01:02, 2 years ago
Re: UTF-8 Conversion Tools Thread This one is great https://www.rotatingscrew.com/utfcast...press.aspx for batch conversion. ( See attachment as well ).

You can also use Notepad++, open and select Format > Convert > UTF-8 for one by one file.

With PowerShell
Code
Get-Content .\test.txt | Set-Content -Encoding utf8 test-utf8.txt



iconv from GNUWin32
Code
"C:\Program Files (x86)\GnuWin32\bin\iconv.exe" -f cp1251 -t utf-8 source.txt > output.txt

douwe_yntema
douwe_yntema 03-01-2019 23:39, 2 years ago
Re: Globale and one word locale The current concept of one word and global locales does not work for Dutch language.
The word no, means nee in dutch. For the question "are you smoking?" answer is "no" or "nee" in Dutch.
But for status: There are no private messages, is translated as: "er zijn nee prive berichten", but this is wrong, it should be: "er zijn geen prive berichten.
So the English "no" can be translated as "nee" or as "geen".
For the English No There are two translations possible is Dutch: nee or geen.
But the language files has only one option for it.
douwe_yntema
douwe_yntema 02-01-2019 19:23, 2 years ago
Re: Where to find other locales than English for v8? Same results with this tool

Maybe tool does not work with Dutch language?

Ill do it my way, with melddiff.
This tool works, the tool you submitted does not work.

Anyway the V8 Dutch locale at the github repo is NOT uptodate because its made with this tool too.

See this link: http://v8.php-fusion.net/compare_loca...ocales.php

This is with the file you sent, but changed locale to Dutch,
See for yourself the diffs in the locale files on Gitub, in the main admin/main section, there are missing entry's

Merged on 01/02/2019:
There should be a locale repo also for V7.03.00 on github.
Cause I have locales for German and Dutch too
RobiNN
RobiNN 02-01-2019 18:09, 2 years ago
Re: Where to find other locales than English for v8? Updated


Line 20
Change Slovak to your lang

I have translated whole v7 locales to v8 with this tool
douwe_yntema
douwe_yntema 02-01-2019 18:01, 2 years ago
Re: Where to find other locales than English for v8? I am never sure by that crappy github, but I think I am in.

Thanks

Merged on 01/02/2019:

Quote


2. Missing locale in admin/main.php
https://github.com/php-fusion/PHP-Fusion/blob/8.00/locale/English/admin/main.php#L116


Indeed this local was missing, but the so called lovely compare_locales.php should have noted it, isn't it?
There where a few more locales missing in the file, also not detected by this tool.

Still got a lot of missing locale indices in the admin section, although the tool says everything is ok.
SO: This tool is not reliable and cannot be use i.m.o.
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.