Organize Language Files

Tools by the phpBBModders team and Community contributed tools.
Forum rules
Only post tools related to modding in here, simple.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
EXreaction
New member
New member
Posts: 11
Joined: 19 Jul 2008, 16:33
Real name: Nathan
Contact:

Organize Language Files

Postby EXreaction » 19 Jul 2008, 16:53

This script organizes all of the language keys in a file (and can also do so for all language files in a certain directory and subdirectories).

The file is attached, just unzip it and upload it to your forum's root directory.

The file name of the file you want to organize should be sent in the URL.

If you want to organize the language/en/common.php file it would be:
organize_lang.php?file=en/common
(do not add .php)

If you want to organize the entire language/en/acp/ folder it would be:
organize_lang.php?file=en/acp/

By default, if no file is submitted in the URL it organizes the files in the language/en/mods/ directory.
Attachments
organize_lang.zip
(2.02 KiB) Downloaded 192 times
My phpBB3 Mods:
| | | |

BetaDevil
Supporter
Supporter
Posts: 27
Joined: 01 Sep 2007, 12:27
Real name: Tim
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Organize Language Files

Postby BetaDevil » 19 Jul 2008, 17:34

Yeah, it works great :D Now I don't have too organize it by myself :mrgreen:

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Organize Language Files

Postby Obsidian » 24 Jul 2008, 00:06

So, I take it that it does it alphabetically, then? :)

User avatar
EXreaction
New member
New member
Posts: 11
Joined: 19 Jul 2008, 16:33
Real name: Nathan
Contact:

Re: Organize Language Files

Postby EXreaction » 24 Jul 2008, 00:19

Yes, it looks like this when ran:
http://userblogmod.googlecode.com/svn/t ... common.php

(download it and look at it, browsers don't keep the spacing correct)
My phpBB3 Mods:
| | | |

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Organize Language Files

Postby igorw » 26 Jul 2008, 16:21

Very nice! I think i'll be using this. :D

- we're poor!

femu
New member
New member
Posts: 19
Joined: 26 Jul 2006, 08:08
Location: Pfaffenhofen
Contact:

Re: Organize Language Files

Postby femu » 30 Nov 2008, 06:52

Respect! Great tool and helps to get the language strings in a clean order!

Thanks!
Kind regards,
femu

femu
New member
New member
Posts: 19
Joined: 26 Jul 2006, 08:08
Location: Pfaffenhofen
Contact:

Re: Organize Language Files

Postby femu » 15 Dec 2008, 07:16

Kind regards,
femu


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Tools for MOD authors”

Who is online

Users browsing this forum: No registered users and 4 guests