Martin A. Posted September 21, 2009 Posted September 21, 2009 File Name: [MA23] Language File Comparison ToolFile Submitter: m4rtinFile Submitted: 07 Sep 2008File 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
Owdy Posted May 8, 2010 Posted May 8, 2010 Can you upgrade this to IPB 3.1`:) There isnt cache/lang_cache/en anymore
Adriano Faria Posted May 9, 2010 Posted May 9, 2010 You need to edit the file to informe the right folder. Read the html file.
Owdy Posted May 9, 2010 Posted May 9, 2010 I read it, but it sayd i didnt need to change that 'cache/lang_cache/en' line, but there isnt any "en" folder anymore. Seems they are just numbers now, should work :)
Owdy Posted May 9, 2010 Posted May 9, 2010 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' );
Martin A. Posted May 9, 2010 Author Posted May 9, 2010 Not sure, but I think the installer/upgrader in 3.0 inserts lang strings to all available language sets, and it gives you the option to only translate untranslated text. The one string you found is probably one that's not in use anymore.
Owdy Posted May 9, 2010 Posted May 9, 2010 No, i didnt upgrade, i installed 3.1 to my test server and installed my 3.0.x lang files to there.
Martin A. Posted August 10, 2010 Author Posted August 10, 2010 [quote name='Chillyware' timestamp='1281371286' post='2002559'] m4rtin will this works on IPB.3.1.2. There's no need for this in IP.Board 3. The language manager are able to detect untranslated and/or missing language strings.
Owdy Posted December 19, 2010 Posted December 19, 2010 [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/
Recommended Posts
Archived
This topic is now archived and is closed to further replies.