Forums / Cotonti / Localization / [Template] Plugin lang-file

Kort
#1 2009-03-18 20:08
<?php
/**
 * LOCALE Language File for PLUG Plugin
 *
 * @package Cotonti
 * @version VERSION
 * @author Cotonti Translators Team
 * @copyright Copyright (c) 2008-2009 Cotonti Team
 * @license BSD
 */

/**
 * Plugin Title & Subtitle
 */



/**
 * Plugin Body
 */



/**
 * Plugin Config
 */



?>
Ok, this is what we came up with for plugin translations.
LOCALE - replace with the translation language (e.g. Dutch)
PLUG - replace with the plugin name (e.g. ComEdit)
VERSION - replace with the Cotonti version the language file is made for (it is a bit confusing for me, I'd rather put here plugin version, so I leave it for discussion -- like the template itself)

Revision History:
19.03.2009 - changed
<?PHP
to
<?php
, fixed copyright notice.
Thanks to dervan
SED.by - создание сайтов, разработка плагинов и тем для Котонти

Dit bericht is bewerkt door Kort (2009-03-19 22:56, 15 jaren ago)
dervan
#2 2009-03-18 22:15
my opinion for "Plugin Config" section: all english texts for config must be exists in "setup" plugin part, and it's necessary to repeat all these texts in "Plugin Config" section in english lang-file
Dayver
#3 2009-03-19 01:03
# dervan : my opinion for "Plugin Config" section: all english texts for config must be exists in "setup" plugin part, and it's necessary to repeat all these texts in "Plugin Config" section in english lang-file
I do not agree with you .... English Langpack should include these lines because all translations are from English as from default lang.
Pavlo Tkachenko aka Dayver
dervan
#4 2009-03-19 04:51
# Dayver : I do not agree with you ....
why don't you agree? where i told that english should not be default?
Dayver
#5 2009-03-19 05:34
Sorry, in first post I do not understand you .... in fact, I fully agree with you
Pavlo Tkachenko aka Dayver
dervan
#6 2009-03-19 05:40
sorry for my english :)
Kort
#7 2009-03-19 05:49
Apology accepted :-)

Template updated (check Revision History). Please update your localizations accordingly!
SED.by - создание сайтов, разработка плагинов и тем для Котонти

Dit bericht is bewerkt door Kort (2009-03-19 17:50, 15 jaren ago)
pieter
#8 2009-03-20 03:20
Is there a way to download the latest updated version of the files in Trunk?

I want to download this, to start from it to do the translation.
If I do this, the structure is already OK.

EDIT: founded on the bottom
... can we help you ...

Dit bericht is bewerkt door pieter (2009-03-20 03:21, 15 jaren ago)
dervan
#9 2009-03-20 04:58
IMO, it's need to check for legal running of code

now used code like this:
if (!defined('SED_CODE')) { die('Wrong URL.'); }
but this code is not convenient to Cotonti Coding Style

conventional code:
if (!defined('SED_CODE'))
{
	die('Wrong URL.');
}
but this code is not compact

compact code with the same check:
defined('SED_CODE') or die('Wrong URL.');

i suggest to add this check in template:
<?php
/**
 * LOCALE Language File for PLUG Plugin
 *
 * @package Cotonti
 * @version VERSION
 * @author Cotonti Translators Team
 * @copyright Copyright (c) 2008-2009 Cotonti Team
 * @license BSD
 */

defined('SED_CODE') or die('Wrong URL.');

/**
 * Plugin Title & Subtitle
 */