Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2010-05-22 21:14:37

artoodetoo
Member
From: Far-Far-Away
Registered: 2008-05-11
Posts: 220

Language files tester

Language files tester

Looks for:
- lang file haven't mirror in another lang
- lost keys in one of the mirrors
- undefined $lang_* variables in modules
- undefined keys in $lang_* variables in modules
- lang keys which defined in lang but never used

Tested for FluxBB 1.4RC3 but should run in other versions.

http://fluxbb.org.ru/files/langfilecheck.zip
Unzip into forum root and open in browser


I'm not a fan of FluxBB way anymore.

Offline

#2 2010-05-22 21:16:31

artoodetoo
Member
From: Far-Far-Away
Registered: 2008-05-11
Posts: 220

Re: Language files tester

Output example:

Compare English to Russian:
Ok
----------------
Scan for variable usage:
*** search's never used key(s): 'User search'
*** admin_bans's never used key(s): 'Banned by label', 'Reason label'

I'm not a fan of FluxBB way anymore.

Offline

#3 2010-05-23 08:50:50

zaher
Member
From: Damascus, Syria
Registered: 2008-07-12
Posts: 126
Website

Re: Language files tester

Good tools

Offline

#4 2010-05-23 15:10:00

Otomatic
FluxBB Donor
From: Paris - France
Registered: 2010-01-26
Posts: 570
Website

Re: Language files tester

Hello,

Many thanks. This is a very efficient tool.


Ce n'est pas parce que l'erreur se propage qu'elle devient vérité. Ghandi
An error does not become truth by reason of multiplied propagation. Ghandi

Offline

#5 2010-05-23 16:26:48

Paul
Developer
From: Wales, UK
Registered: 2008-04-27
Posts: 1,653

Re: Language files tester

Otomatic: totally off topic but in your signature I think you translated an English quote into French and then back into English.  What Ghandi said was:

"An error does not become truth by reason of multiplied propagation ...".


The only thing worse than finding a bug is knowing I created it in the first place.

Offline

#6 2010-05-25 12:13:05

Otomatic
FluxBB Donor
From: Paris - France
Registered: 2010-01-26
Posts: 570
Website

Re: Language files tester

Hello,

I think this tool should become an official tools for validation of language files. Not for the translation validation, but validation of the names of keys and correspondence between the different language files.


Ce n'est pas parce que l'erreur se propage qu'elle devient vérité. Ghandi
An error does not become truth by reason of multiplied propagation. Ghandi

Offline

#7 2010-06-18 08:48:05

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 6,661
Website

Re: Language files tester

We'll just use it, if that's official enough for you wink


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#8 2010-07-24 13:54:17

artoodetoo
Member
From: Far-Far-Away
Registered: 2008-05-11
Posts: 220

Re: Language files tester

Fluxbb 1.4.1 have unused language entries:

Scan for variable usage:
*** common's never used key(s): 'Go', 'Jump to'
*** search's never used key(s): 'User search'

found by langfilecheck


I'm not a fan of FluxBB way anymore.

Offline

#9 2010-07-24 13:59:43

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 6,661
Website

Re: Language files tester

Not true. Both "Go" and "Jump to" are used in the quickjump cache files, which should be the reason your tool is not parsing them.


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#10 2010-07-25 04:45:46

artoodetoo
Member
From: Far-Far-Away
Registered: 2008-05-11
Posts: 220

Re: Language files tester

Thank you! Really, it was result from just installed forum w/o cache smile
So, 'User search' is odd only.


I'm not a fan of FluxBB way anymore.

Offline

#11 2011-01-24 19:26:15

Jack
Member
Registered: 2010-12-24
Posts: 485
Website

Re: Language files tester

As i said elsewhere. I copied the file. Launched and:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /var/www/vhosts/sitename.ext/httpdocs/fluxbb143/langfilecheck.php on line 18

Any clue?

I'm running php 4.8 i guess (in february we ll have php 5.3 but for now...).


Sorry I don't speak English smile
FluxBB Italy

Offline

#12 2011-02-08 16:44:55

Otomatic
FluxBB Donor
From: Paris - France
Registered: 2010-01-26
Posts: 570
Website

Re: Language files tester

Hello,

@artoodetoo: Is there a simple way to add test of language files that are in plugins/name_of_plugin/lang/English/ and /French/.

Thanks.


Ce n'est pas parce que l'erreur se propage qu'elle devient vérité. Ghandi
An error does not become truth by reason of multiplied propagation. Ghandi

Offline

#13 2011-02-11 07:43:01

cyberman
Member
From: Germany
Registered: 2010-01-11
Posts: 297
Website

Re: Language files tester

Thanx for this nice tool ...

Offline

#14 2011-02-11 08:58:01

jojaba
Member
From: Obersoultzbach, Elsaß, France
Registered: 2009-12-04
Posts: 473
Website

Re: Language files tester

Otomatic wrote:

Hello,

@artoodetoo: Is there a simple way to add test of language files that are in plugins/name_of_plugin/lang/English/ and /French/.

Thanks.

Did you try to put the langfilecheck.php file into the plugins/name_of_plugin/ folder and run it? It should work... wink
[edit]
I tried it out but I saw that this couldn't really work because the main file that should be checked (the plugin admin page) is out of this folder.
[/edit]

Last edited by jojaba (2011-02-11 09:56:58)


Localize Mozilla extensions on BabelZilla

Offline

#15 2014-01-12 17:00:09

altjo
Member
Registered: 2013-04-24
Posts: 6
Website

Re: Language files tester

These values are not used...

/lang/English/common.php

Line 93: 'BBCode code problem' => 'There is a problem with your [code ] tags',

/lang/English/install.php

Line 11: 'Next' => 'Next',

/lang/English/search.php

Line 19: 'All forums' => 'All forums',

My alternative Russian and Ukrainian langpacks and Styles for FluxBB 1.5.10

Offline

#16 2014-01-12 19:18:31

quy
Administrator
From: California
Registered: 2008-05-09
Posts: 926

Re: Language files tester

Ticket created. Thanks.

Offline

Board footer

Powered by FluxBB