Jump to content

Download: [MA23] Language File Comparison Tool


Martin A.

Recommended Posts

File Name: [MA23] Language File Comparison Tool
File Submitter: m4rtin
File Submitted: 07 Sep 2008
File Category: IPB 2.2.x / 2.3.x Tools

/*
* @DESC:
* This is a tool for comparing your custom IP.Board language files, with the default files.
* During upgrading, or other things, new language strings aren't added to these files, causing empty fields around the board.
*
* This tool will scan trough the default language folder (./cache/lang_cache/en), then the other language folder.
* If there are files in the default folder, that arne't in the other, it will be copied.
* It does not work the other way, as many language packs may contain irrelevant language files that you don't need.
* When the scanning is done, it will go trough each and every file to see if the language keys (the one used on the IP.Board template)
* are in both files. If some are missing, it will be printed in the result page.
*
* Due to the way lang_email_content.php is built up, I were not able to compare that file.
* You either have to do it manually, or just use the standard English version.
*
* @USAGE:
* Save this file as "langdiff.php", then change the two paths below this comment (in the php file), then upload it to your forums root folder.
* Then access it using your web browser. When it's done, it should either show you a list of all the differences,
* or a page showing you that everything is up-to-date.
*
* @DISCLAIMER
* I do not take any responsibility for use of this tool.
* You should always take backups before installing or using 3rd party applications.
* In this case, you should back up "cache/lang_cache", just in case something should go wrong.
*
* @author: Martin Aronsen
* @web: http://www.invisionmodding.com
*/

There are no requirements for any installers, and it is compatible with all IPB versions as far as I know.

The instructions are found on the top of the file (langdiff.php), or here.

What's new?
v1.1 - Made it compatible with PHP4.

Click here to download this file

Link to comment
  • 7 months later...

This tool founded only one missing string. Im sure there must be more of them? :D




1. english
2. finnish

edit: seems this tool isnt needed anymore?
http://community.invisionpower.com/topic/309492-ipb-31-lang-files/page__view__findpost__p__1950083

// This should be left alone

define( 'DEFAULT_LANG_DIR', 'cache/lang_cache/1' );


// This is the one you might want to change

define( 'CUSTOM_LANG_DIR', 'cache/lang_cache/2' );
Link to comment
  • 2 months later...
  • 4 months later...

[quote name='m4rtin' timestamp='1281398922' post='2002795']
There's no need for this in IP.Board 3. The language manager are able to detect untranslated and/or missing language strings.

Seems it doesnt do that anymore: http://community.invisionpower.com/topic/328097-how-to-update-lang-files/

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...