mediawiki-extensions-Scribunto/Scribunto.i18n.php

141 lines
8.2 KiB
PHP
Raw Normal View History

<?php
/**
2012-04-06 05:04:30 +00:00
* Internationalisation file for extension Scribunto.
*
* @file
* @ingroup Extensions
*/
$messages = array();
/** English
* @author Victor Vasiliev
*/
$messages['en'] = array(
2012-04-06 05:04:30 +00:00
'scribunto-desc' => 'Framework for embedding scripting languages into MediaWiki pages',
'scribunto-line' => 'at line $1',
'scribunto-module-line' => 'in $1 at line $2',
'scribunto-parser-error' => 'Script error',
'scribunto-parser-dialog-title' => 'Script error',
Added more Lua environment features Package library: * Added a simulation of the Lua 5.1 package library. * Removed mw.import(), replaced it with a package loader. Packages can be retrieved from the wiki, using require('Module:Foo'), or from files distributed with Scribunto, using require('foo'). The "Module:" prefix allows for source compatibility with existing Lua code. * Added a couple of libraries from LuaForge: luabit and stringtools. * Made fetchModuleFromParser() return null on error instead of throwing an exception, to more easily support the desired behaviour of the package loader, which needs to return null on error. * Renamed mw.setupEnvironment() to mw.setup() since it is setting up things other than the environment now. * In MWServer:handleRegisterLibrary(), remove the feature which interprets dots in library names, since LuaSandbox doesn't support this. Improved module isolation and related refactoring: * Expose restricted versions of getfenv() and setfenv() to user Lua code. Requires luasandbox r114952. * Don't cache the export list returned by module execution for later function calls. This breaks isolation of #invoke calls, since the local variables are persistent. * Removed ScribuntoFunctionBase and its children, since it doesn't really have a purpose if it can't cache anything. Instead, invoke functions using a module method called invoke(). * Removed Module::initialize(), replaced it with a validate() function. This is a more elegant interface and works better with the new module caching scheme. * Use a Status object for the return value of Engine::validate() instead of an array. Use the formatting facilities of the Status class. Other: * Removed "too many returns" error, doesn't fit in with Lua conventions. * Use the standalone engine by default, so that the extension will work without configuration for more people. * Added an accessor for $engine->interpreter * Fix mw.clone() to correctly clone metatables * If the standalone interpreter exits due to an error, there are some contexts where the initial error will be caught and ignored, and the user will see the error from checkValid() instead. In this case, rethrow the original error for a more informative message. * Load mw.lua into the initial standalone environment, to reduce code duplication between mw.lua and MWServer.lua. * Fixed a bug in Scribunto_LuaStandaloneInterpreter::handleCall() for functions that return no results. * Fixed a bug in encodeLuaVar() for strings with "\r". Added test case. * In MWServer.lua, don't call error() for internal errors, instead just print the error and exit. This avoids a protocol violation when an error is encountered from within handleCall(). * Added lots of documentation. Lua doc comments are in LuaDoc format. Change-Id: Ie2fd572c362bedf02f45d3fa5352a5280e034740
2012-04-18 03:46:18 +00:00
'scribunto-error-short' => 'Script error: $1',
'scribunto-error-long' => 'Script errors:
$1',
2012-04-06 05:04:30 +00:00
'scribunto-common-nosuchmodule' => 'Script error: No such module',
'scribunto-common-nofunction' => 'Script error: You must specify a function to call.',
'scribunto-common-nosuchfunction' => 'Script error: The function you specified did not exist.',
'scribunto-common-timeout' => 'The time allocated for running scripts has expired.',
'scribunto-common-oom' => 'The amount of memory allowed for running scripts has been exceeded.',
'scribunto-common-backtrace' => 'Backtrace:',
'scribunto-lua-in-function' => 'in function "$1"',
'scribunto-lua-in-main' => 'in main chunk',
'scribunto-lua-in-function-at' => 'in the function at $1:$2',
'scribunto-lua-backtrace-line' => '$1: $2',
'scribunto-lua-error-location' => 'Lua error $1: $2',
'scribunto-lua-error' => 'Lua error: $2',
Added more Lua environment features Package library: * Added a simulation of the Lua 5.1 package library. * Removed mw.import(), replaced it with a package loader. Packages can be retrieved from the wiki, using require('Module:Foo'), or from files distributed with Scribunto, using require('foo'). The "Module:" prefix allows for source compatibility with existing Lua code. * Added a couple of libraries from LuaForge: luabit and stringtools. * Made fetchModuleFromParser() return null on error instead of throwing an exception, to more easily support the desired behaviour of the package loader, which needs to return null on error. * Renamed mw.setupEnvironment() to mw.setup() since it is setting up things other than the environment now. * In MWServer:handleRegisterLibrary(), remove the feature which interprets dots in library names, since LuaSandbox doesn't support this. Improved module isolation and related refactoring: * Expose restricted versions of getfenv() and setfenv() to user Lua code. Requires luasandbox r114952. * Don't cache the export list returned by module execution for later function calls. This breaks isolation of #invoke calls, since the local variables are persistent. * Removed ScribuntoFunctionBase and its children, since it doesn't really have a purpose if it can't cache anything. Instead, invoke functions using a module method called invoke(). * Removed Module::initialize(), replaced it with a validate() function. This is a more elegant interface and works better with the new module caching scheme. * Use a Status object for the return value of Engine::validate() instead of an array. Use the formatting facilities of the Status class. Other: * Removed "too many returns" error, doesn't fit in with Lua conventions. * Use the standalone engine by default, so that the extension will work without configuration for more people. * Added an accessor for $engine->interpreter * Fix mw.clone() to correctly clone metatables * If the standalone interpreter exits due to an error, there are some contexts where the initial error will be caught and ignored, and the user will see the error from checkValid() instead. In this case, rethrow the original error for a more informative message. * Load mw.lua into the initial standalone environment, to reduce code duplication between mw.lua and MWServer.lua. * Fixed a bug in Scribunto_LuaStandaloneInterpreter::handleCall() for functions that return no results. * Fixed a bug in encodeLuaVar() for strings with "\r". Added test case. * In MWServer.lua, don't call error() for internal errors, instead just print the error and exit. This avoids a protocol violation when an error is encountered from within handleCall(). * Added lots of documentation. Lua doc comments are in LuaDoc format. Change-Id: Ie2fd572c362bedf02f45d3fa5352a5280e034740
2012-04-18 03:46:18 +00:00
'scribunto-lua-noreturn' => 'Script error: The module did not return a value, it should return an export table.',
'scribunto-lua-notarrayreturn' => 'Script error: The module returned something other than a table, it should return an export table.',
'scribunto-luastandalone-proc-error' => 'Lua error: cannot create process',
'scribunto-luastandalone-decode-error' => 'Lua error: internal error: unable to decode message',
'scribunto-luastandalone-write-error' => 'Lua error: internal error: error writing to pipe',
'scribunto-luastandalone-read-error' => 'Lua error: internal error: error reading from pipe',
'scribunto-luastandalone-gone' => 'Lua error: internal error: the interpreter has already exited',
'scribunto-luastandalone-signal' => 'Lua error: internal error: the interpreter has terminated with signal "$2"',
'scribunto-luastandalone-exited' => 'Lua error: internal error: the interpreter exited with status $2',
);
/** German (Deutsch)
* @author Kghbln
*/
$messages['de'] = array(
'scribunto-desc' => 'Ermöglicht eine Umgebung zum Einbetten von Skriptsprachen in Wikiseiten',
'scribunto-line' => 'in Zeile $1',
'scribunto-module-line' => 'in $1, Zeile $2',
'scribunto-parser-error' => 'Skriptfehler',
'scribunto-parser-dialog-title' => 'Skriptfehler',
'scribunto-error-short' => 'Skriptfehler: $1',
'scribunto-error-long' => 'Skriptfehler:
$1',
'scribunto-common-nosuchmodule' => 'Skriptfehler: Ein solches Modul ist nicht vorhanden.',
'scribunto-common-nofunction' => 'Skriptfehler: Es muss eine aufzurufende Funktion angegeben werden.',
'scribunto-common-nosuchfunction' => 'Skriptfehler: Die angegebene Funktion ist nicht vorhanden.',
'scribunto-common-timeout' => 'Die Zeit zum Ausführen von Skripten vorgesehene Zeit ist abgelaufen.',
'scribunto-common-oom' => 'Der zum Ausführen von Skripten vorgesehene Arbeitsspeicher wurde erschöpft.',
'scribunto-common-backtrace' => 'Ablaufrückverfolgung:',
'scribunto-lua-in-function' => 'in der Funktion „$1“',
'scribunto-lua-in-main' => 'im Hauptsegment',
'scribunto-lua-in-function-at' => 'in der Funktion bei $1:$2',
'scribunto-lua-error-location' => 'Lua-Fehler $1: $2',
'scribunto-lua-error' => 'Lua-Fehler: $2',
'scribunto-lua-noreturn' => 'Skriptfehler: Das Modul gab keinen Wert zurück, obwohl es eine Tabelle zum Export hätte zurückgeben sollen.',
'scribunto-lua-notarrayreturn' => 'Skriptfehler: Das Modul gab etwas anderes als eine Tabelle zum Export zurück. Es hätte eine Tabelle zum Export hätte zurückgeben sollen.',
'scribunto-luastandalone-proc-error' => 'Lua-Fehler: Der Vorgang kann nicht erstellt werden.',
'scribunto-luastandalone-decode-error' => 'Interner Lua-Fehler: Die Nachricht konnte nicht dekodiert werden.',
'scribunto-luastandalone-write-error' => 'Interner Lua-Fehler: Es trat ein Fehler beim Schreiben auf.',
'scribunto-luastandalone-read-error' => 'Interner Lua-Fehler: Es trat ein Fehler beim Lesen auf.',
'scribunto-luastandalone-gone' => 'Interner Lua-Fehler: Der Interpreter wurde bereits beendet.',
'scribunto-luastandalone-signal' => 'Interner Lua-Fehler: Der Interpreter beendet sich mit dem Signal „$2“.',
'scribunto-luastandalone-exited' => 'Interner Lua-Fehler: Der Interpreter beendet sich mit dem Status $2.',
);
/** Brazilian Portuguese (português do Brasil)
* @author Jaideraf
*/
$messages['pt-br'] = array(
'scribunto-desc' => 'Estrutura para incorporar linguagens de script em páginas do MediaWiki',
'scribunto-line' => 'na linha $1',
'scribunto-module-line' => 'em $1 na linha $2',
'scribunto-parser-error' => 'Erro de script',
'scribunto-parser-dialog-title' => 'Erro de script',
'scribunto-error-short' => 'Erro de script: $1',
'scribunto-error-long' => 'Erros de script:
$1',
'scribunto-common-nosuchmodule' => 'Erro de script: módulo não encontrado',
'scribunto-common-nofunction' => 'Erro de script: você deve especificar uma função para chamar.',
'scribunto-common-nosuchfunction' => 'Erro de script: a função especificada não existe.',
'scribunto-common-timeout' => 'O tempo alocado para a execução de scripts expirou.',
'scribunto-common-oom' => 'A quantidade de memória permitida para a execução de scripts foi excedida.',
'scribunto-common-backtrace' => 'Backtrace:',
'scribunto-lua-in-function' => 'na função "$1"',
'scribunto-lua-in-main' => 'na parte principal',
'scribunto-lua-in-function-at' => 'na função em $1:$2',
);
/** Tagalog (Tagalog)
* @author AnakngAraw
*/
$messages['tl'] = array(
'scribunto-desc' => 'Baskagan para sa pagbabaon ng mga wikang pampagpapanitik papaloob sa mga pahina ng MediaWiki',
'scribunto-line' => 'sa guhit na $1',
'scribunto-module-line' => 'sa loob ng $1 na nasa guhit na $2',
'scribunto-parser-error' => 'Kamalian sa panitik',
'scribunto-parser-dialog-title' => 'Kamalian sa panitik',
'scribunto-error-short' => 'Kamalian sa panitik: $1',
'scribunto-error-long' => 'Mga kamalian sa panitik:
$1',
'scribunto-common-nosuchmodule' => 'Kamalian sa panitik: Walang ganyang modulo',
'scribunto-common-nofunction' => 'Kamalian sa panitik: Dapat kang magtukoy ng isang tungkuling tatawagin.',
'scribunto-common-nosuchfunction' => 'Kamalian sa panitik: Ang tinukoy mong tungkulin ay hindi umiiral.',
'scribunto-common-timeout' => 'Ang panahong inilaan para sa pagpapatakbo ng mga panitik ay lipas na.',
'scribunto-common-oom' => 'Ang dami ng pinahintulutang alaala para sa pagpapatakbo ng mga panitik ay nalampasan na.',
'scribunto-common-backtrace' => 'Paurong na pagbabakas:',
'scribunto-lua-in-function' => 'sa loob ng tungkuling "$1"',
'scribunto-lua-in-main' => 'sa loob ng pangunahing tipak',
'scribunto-lua-in-function-at' => 'sa loob ng tungkuling nasa $1:$2',
'scribunto-lua-error-location' => 'Kamalian ng lua na $1: $2',
'scribunto-lua-error' => 'Kamalian ng lua: $2',
'scribunto-lua-noreturn' => 'Kamalian sa panitik: Ang modyul ay hindi nagbalik ng isang halaga, dapat itong magbalik ng isang talahanayan ng pag-aangkat.',
'scribunto-lua-notarrayreturn' => 'Kamalian sa panitik: Ang modulo ay nagbalik ng isang bagay na bukod sa isang talahanayan, dapat itong magbalik ng isang talahanayan ng pag-aangkat.',
'scribunto-luastandalone-proc-error' => 'Kamalian ng lua: hindi malikha ang proseso',
'scribunto-luastandalone-decode-error' => 'Kamalian ng lua: panloob na kamalian: hindi nagawang alamin ang kodigo ng mensahe',
'scribunto-luastandalone-write-error' => 'Kamalian ng lua: panloob na kamalian: kamalian sa pagsusulat sa tubo',
'scribunto-luastandalone-read-error' => 'Kamalian sa lua: kamaliang panloob: kamalian sa pagbabasa mula sa tubo',
'scribunto-luastandalone-gone' => 'Kamalian sa lua: panloob na kamalian: lumabas na ang tagapagpaunawa',
'scribunto-luastandalone-signal' => 'Kamalian sa lua: panloob na kamalian: huminto ang tagapagpaliwanag na mayroong senyas na "$2"',
'scribunto-luastandalone-exited' => 'Kamalian sa lua: panloob na kamalian: ang tagapagpaunawa ay lumabas na mayroong katayuang $2',
);