Advertisement:

Author Topic: SMF language comparator  (Read 5577 times)

Offline Pedja

  • Jr. Member
  • **
  • Posts: 290
  • Gender: Male
    • Forum of Uzice
SMF language comparator
« on: January 23, 2006, 11:52:38 AM »
If you are dealing with SMF transaltion this tool mayhelp you. It will show you differences between source language file (english) and destiantion language file (language you use).

SMF LANGUAGE FILE COMPARATOR
Produced by Pedja in January, 2006

This script will compare oroginal english language file with language file for
targeted language. It will show you what language items are not defined in
destination language files, so you can easily update, even if you have older
transaltion.

Srcipt is coded in short time and expects you to know what you are doing. It
does not write any data so it is harmful. It may break if required files are not
available.

usage:

Place this script in root directory of your SimpleMachines Forum

Set $lang_path to point to  directory where language files
are stored. Provided value will probably match.

Set $src_lang to show source lenguage. Usually value should be "english".

Set $dst_lang to show destination language. That is language name part of language file name.

Set $src_file to source language file name of the file you want to check. For english
index file this should be "index.english.php". Check for toher files.

Run the script. It will show you long list of variables with values in source and
destination file. If value is not defined in destination file, that variable will
be presented on red background so it would be easy to spot it.

Enter new values in edit fields, and efter editing is finished, Click on submit.
New page will be presented with array define like list of values. Those which are not
defined are marked as bold. You may copy and paste text to insert in your language
files.

By default, script uses UTF-8 encoding for strings. If you want other encoding change
Content-Type definition in document header.

I hope this would help you in SMF transaltion.

Offline Pedja

  • Jr. Member
  • **
  • Posts: 290
  • Gender: Male
    • Forum of Uzice
Re: SMF language comparator
« Reply #1 on: January 23, 2006, 12:03:11 PM »
It seems I am not allowed to upload attachments here, so there is an download site: http://forum.infosys.co.yu/translate/

Offline Daniel D.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,426
  • Gender: Male
Re: SMF language comparator
« Reply #2 on: January 23, 2006, 03:07:49 PM »
We already have such a tool since 6 months!!

Offline Pedja

  • Jr. Member
  • **
  • Posts: 290
  • Gender: Male
    • Forum of Uzice
Re: SMF language comparator
« Reply #3 on: January 24, 2006, 04:56:13 AM »
It seems, my post upset you. Sorry, I could not find any, so I wrote this.

Can you post some more info about tool that is already available? Donwload link would be good, too.