2004-01-21 18:35:50 +08:00
< ? php
//
2004-01-21 18:55:02 +08:00
// ZoneMinder web Polish language file, $Date$, $Revision$
2004-01-21 18:35:50 +08:00
// Copyright (C) 2003 Philip Coombes
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
2004-01-21 18:55:02 +08:00
// ZoneMinder <your language> Translation by <your name>
2004-01-21 18:35:50 +08:00
// Notes for Translators
2004-01-21 18:55:02 +08:00
// 0. Get some credit, put your name in the line above (optional)
2004-01-21 18:35:50 +08:00
// 1. When composing the language tokens in your language you should try and keep to roughly the
// same length text if possible. Abbreviate where necessary as spacing is quite close in a number of places.
2004-01-21 18:55:02 +08:00
// 2. There are four types of string replacement
2004-01-21 18:35:50 +08:00
// a) Simple replacements are words or short phrases that are static and used directly. This type of
// replacement can be used 'as is'.
// b) Complex replacements involve some dynamic element being included and so may require substitution
// or changing into a different order. The token listed in this file will be passed through sprintf as
// a formatting string. If the dynamic element is a number you will usually need to use a variable
// replacement also as described below.
// c) Variable replacements are used in conjunction with complex replacements and involve the generation
2004-01-21 18:55:02 +08:00
// of a singular or plural noun depending on the number passed into the zmVlang function. See the
// the zmVlang section below for a further description of this.
// d) Optional strings which can be used to replace the prompts and/or help text for the Options section
// of the web interface. These are not listed below as they are quite large and held in the database
// so that they can also be used by the zmconfig.pl script. However you can build up your own list
// quite easily from the Config table in the database if necessary.
2004-01-21 18:35:50 +08:00
// 3. The tokens listed below are not used to build up phrases or sentences from single words. Therefore
// you can safely assume that a single word token will only be used in that context.
// 4. In new language files, or if you are changing only a few words or phrases it makes sense from a
// maintenance point of view to include the original language file and override the old definitions rather
// than copy all the language tokens across. To do this change the line below to whatever your base language
// is and uncomment it.
2004-01-21 18:55:02 +08:00
// require_once( 'zm_lang_en_gb.php' );
// You may need to change the character set here, if your web server does not already
// do this by default, uncomment this if required.
//
// Example
// header( "Content-Type: text/html; charset=iso-8859-1" );
// You may need to change your locale here if your default one is incorrect for the
// language described in this file, or if you have multiple languages supported.
// If you do need to change your locale, be aware that the format of this function
// is subtlely different in versions of PHP before and after 4.3.0, see
// http://uk2.php.net/manual/en/function.setlocale.php for details.
// Also be aware that changing the whole locale may affect some floating point or decimal
// arithmetic in the database, if this is the case change only the individual locale areas
// that don't affect this rather than all at once. See the examples below.
// Finally, depending on your setup, PHP may not enjoy have multiple locales in a shared
// threaded environment, if you get funny errors it may be this.
//
// Examples
// setlocale( 'LC_ALL', 'en_GB' ); All locale settings pre-4.3.0
// setlocale( LC_ALL, 'en_GB' ); All locale settings 4.3.0 and after
// setlocale( LC_CTYPE, 'en_GB' ); Character class settings 4.3.0 and after
// setlocale( LC_TIME, 'en_GB' ); Date and time formatting 4.3.0 and after
2004-01-21 18:35:50 +08:00
// Simple String Replacements
$zmSlang24BitColour = 'Kolor (24 bity)' ;
$zmSlang8BitGrey = 'Szary (8 bit<69> w)' ;
$zmSlangActual = 'Aktualny' ;
$zmSlangAddNewMonitor = 'Dodaj nowy monitor' ;
$zmSlangAddNewUser = 'Dodaj u<> ytkownika' ;
$zmSlangAddNewZone = 'Dodaj now<6F> stref<65> ' ;
$zmSlangAlarm = 'Alarm' ;
$zmSlangAlarmBrFrames = 'Alarm<br/>ramek' ;
$zmSlangAlarmFrame = 'Ramka alarmu' ;
$zmSlangAlarmLimits = 'Ograniczenia alarmu' ;
$zmSlangAlarmPx = 'Alarm Px' ;
$zmSlangAlert = 'Alert' ;
$zmSlangAll = 'Wszystko' ;
$zmSlangApply = 'Zastosuj' ;
$zmSlangApplyingStateChange = 'Zastosuj zmien<65> stanu' ;
$zmSlangArchArchived = 'Tylko zarchiwizowane' ;
$zmSlangArchive = 'Archiwa' ;
$zmSlangArchUnarchived = 'Tylko niezarchiwizowane' ;
$zmSlangAttrAlarmFrames = 'Alarm Ramek' ;
$zmSlangAttrArchiveStatus = 'Status archiwum' ;
$zmSlangAttrAvgScore = '<27> red. wynik' ;
$zmSlangAttrDate = 'Data' ;
$zmSlangAttrDateTime = 'Data/Czas' ;
$zmSlangAttrDuration = 'Czas trwania' ;
$zmSlangAttrFrames = 'Ramek' ;
$zmSlangAttrMaxScore = 'Maks. wynik' ;
$zmSlangAttrMontage = 'Monta<74> ' ;
$zmSlangAttrTime = 'Czas' ;
$zmSlangAttrTotalScore = 'Ca<43> kowity wynik' ;
$zmSlangAttrWeekday = 'Dzie<69> roboczy' ;
$zmSlangAutoArchiveEvents = 'Automatycznie archiwizuj wszystkie pasuj<75> ce zdarzenia' ;
$zmSlangAutoDeleteEvents = 'Automatycznie kasuj wszystkie pasuj<75> ce zdarzenia' ;
$zmSlangAutoEmailEvents = 'Automatycznie wysy<73> aj emailem szczeg<65> <67> y o pasuj<75> cych zdarzeniach' ;
$zmSlangAutoMessageEvents = 'Automatycznie wysy<73> aj komunikat o pasuj<75> cych zdarzeniach' ;
$zmSlangAutoUploadEvents = 'Automatycznie upload-uj wszystkie pasuj<75> ce zdarzenia' ;
$zmSlangAvgBrScore = '<27> red.<br/>wynik' ;
$zmSlangBandwidth = 'przepustowo<77> <6F> ' ;
$zmSlangBlobPx = 'Blob Px' ;
$zmSlangBlobs = 'Bloby' ;
$zmSlangBlobSizes = 'Rozmiary Blob<6F> w' ;
$zmSlangBrightness = 'Jaskrawo<77> <6F> ' ;
$zmSlangBuffers = 'Bufory' ;
$zmSlangCancel = 'Anuluj' ;
$zmSlangCancelForcedAlarm = 'Anuluj wymuszony alarm' ;
$zmSlangCaptureHeight = 'Wysoko<6B> <6F> obrazu' ;
$zmSlangCapturePalette = 'Paleta kolor<6F> w obrazu' ;
$zmSlangCaptureWidth = 'Szeroko<6B> <6F> obrazu' ;
$zmSlangCheckAll = 'Sprawd<77> wszystko' ;
$zmSlangChooseFilter = 'Wybierz filtr' ;
$zmSlangClose = 'Zamknij' ;
$zmSlangColour = 'Nasycenie' ;
$zmSlangConfiguredFor = 'Ustawiona' ;
$zmSlangConfirmPassword = 'Potwierd<72> has<61> o' ;
$zmSlangConjAnd = 'i' ;
$zmSlangConjOr = 'lub' ;
$zmSlangConsole = 'Konsola' ;
$zmSlangContactAdmin = 'Skontaktuj si<73> z Twoim adminstratorem w sprawie szczeg<65> <67> <EFBFBD> w.' ;
$zmSlangContrast = 'Kontrast' ;
$zmSlangCycleWatch = 'Cykl podgl<67> du' ;
$zmSlangDay = 'Dzie<69> ' ;
$zmSlangDeleteAndNext = 'Usu<73> & nast<73> pny' ;
$zmSlangDeleteAndPrev = 'Usu<73> & poprzedni' ;
$zmSlangDelete = 'Usu<73> ' ;
$zmSlangDeleteSavedFilter = 'Usu<73> zapisany filtr' ;
$zmSlangDescription = 'Opis' ;
$zmSlangDeviceChannel = 'Numer wej<65> cia' ;
$zmSlangDeviceFormat = 'System TV (0=PAL,1=NTSC itd)' ;
$zmSlangDeviceNumber = 'Numer urz<72> dzenia (/dev/video?)' ;
$zmSlangDimensions = 'Rozmiary' ;
$zmSlangDuration = 'Czas trwania' ;
$zmSlangEdit = 'Edycja' ;
$zmSlangEmail = 'Email' ;
$zmSlangEnabled = 'Zezwolono' ;
$zmSlangEnterNewFilterName = 'Wpisz now<6F> nazw<7A> filtra' ;
$zmSlangErrorBrackets = 'B<> <42> d, prosz<73> sprawdzi<7A> ilo<6C> <6F> nawias<61> w otwieraj<61> cych i zamykaj<61> cych' ;
$zmSlangError = 'B<> <42> d' ;
$zmSlangErrorValidValue = 'B<> <42> d, prosz<73> sprawdzi<7A> czy wszystkie warunki maj<61> poprawne warto<74> ci' ;
$zmSlangEtc = 'itp' ;
$zmSlangEvent = 'Zdarzenie' ;
$zmSlangEventFilter = 'Filtr zdarze<7A> ' ;
$zmSlangEvents = 'Zdarzenia' ;
$zmSlangExclude = 'Wyklucz' ;
$zmSlangFeed = 'Dostarcz' ;
$zmSlangFilterPx = 'Filtr Px' ;
$zmSlangFirst = 'Pierwszy' ;
$zmSlangForceAlarm = 'Wymu<6D> alarm' ;
$zmSlangFPS = 'fps' ;
$zmSlangFPSReportInterval = 'Interwa<77> raportu FPS' ;
$zmSlangFrame = 'Ramka' ;
$zmSlangFrameId = 'Nr ramki' ;
$zmSlangFrameRate = 'Tempo ramek' ;
$zmSlangFrames = 'Ramek' ;
$zmSlangFrameSkip = 'Pomi<6D> ramk<6D> ' ;
$zmSlangFTP = 'FTP' ;
$zmSlangFunc = 'Funkcja' ;
$zmSlangFunction = 'Funkcja' ;
$zmSlangGenerateVideo = 'Generowanie Video' ;
$zmSlangGeneratingVideo = 'Generuj<75> Video' ;
$zmSlangGrey = 'Szary' ;
$zmSlangHighBW = 'Wys. prz.' ;
$zmSlangHigh = 'wysoka' ;
$zmSlangHour = 'Godzina' ;
$zmSlangHue = 'Odcie<69> ' ;
$zmSlangId = 'Lp' ;
$zmSlangIdle = 'Bezczynny' ;
$zmSlangIgnore = 'Ignoruj' ;
2004-01-21 18:37:52 +08:00
$zmSlangImageBufferSize = 'Rozmiar bufora obrazu (ramek)' ;
2004-01-21 18:35:50 +08:00
$zmSlangImage = 'Obraz' ;
$zmSlangInclude = 'Do<44> <6F> cz' ;
$zmSlangInverted = 'Odwr<77> cony' ;
$zmSlangLanguage = 'J<> zyk' ;
$zmSlangLast = 'Ostatni' ;
$zmSlangLocal = 'Lokalny' ;
$zmSlangLoggedInAs = 'Zalogowany jako' ;
$zmSlangLoggingIn = 'Logowanie' ;
$zmSlangLogin = 'Login' ;
$zmSlangLogout = 'Wyloguj' ;
$zmSlangLowBW = 'Nis. prz.' ;
$zmSlangLow = 'niska' ;
$zmSlangMark = 'Zacznik' ;
$zmSlangMaxBrScore = 'Maks.<br/>wynik' ;
$zmSlangMaximumFPS = 'Maks. FPS' ;
$zmSlangMax = 'Maks' ;
$zmSlangMediumBW = '<27> red. prz.' ;
$zmSlangMedium = '<27> rednia' ;
$zmSlangMinAlarmGeMinBlob = 'Minimalny rozmiar piksela alarmu musi by<62> wi<77> kszy lub r<> wny od najmniejszego piksela bloba' ;
$zmSlangMinAlarmGeMinFilter = 'Minimalny rozmiar piksela alarmu musi by<62> wi<77> kszy lub r<> wny od najmniejszego piksela filtru' ;
$zmSlangMisc = 'Inne' ;
$zmSlangMonitorIds = 'Numery monitor<6F> w' ;
$zmSlangMonitor = 'Monitor' ;
$zmSlangMonitors = 'Monitory' ;
$zmSlangMontage = 'Monta<74> ' ;
$zmSlangMonth = 'Miesi<73> c' ;
$zmSlangMustBeGe = 'musi by<62> wi<77> ksze lub r<> wne od' ;
$zmSlangMustBeLe = 'musi by<62> mniejsze lub r<> wne od' ;
$zmSlangMustConfirmPassword = 'Musisz potwierdzi<7A> has<61> o' ;
$zmSlangMustSupplyPassword = 'Musisz poda<64> has<61> o' ;
$zmSlangMustSupplyUsername = 'Musisz poda<64> nazw<7A> u<> ytkownika' ;
$zmSlangName = 'Nazwa' ;
$zmSlangNetwork = 'Sie<69> ' ;
$zmSlangNew = 'Nowy' ;
$zmSlangNewPassword = 'Nowe has<61> o' ;
$zmSlangNewState = 'Nowy stan' ;
$zmSlangNewUser = 'nowy' ;
$zmSlangNext = 'Nast<73> pny' ;
$zmSlangNoFramesRecorded = 'Brak zapisanych ramek dla tego zdarzenia' ;
$zmSlangNoneAvailable = 'Niedost<73> pne' ;
$zmSlangNone = 'Brak' ;
$zmSlangNo = 'Nie' ;
$zmSlangNormal = 'Normalny' ;
$zmSlangNoSavedFilters = 'BrakZapisanychFiltr<74> w' ;
$zmSlangNoStatisticsRecorded = 'Brak zapisanych satystyk dla tego zdarzenia/ramki' ;
$zmSlangOpEq = 'r<> wny' ;
$zmSlangOpGtEq = 'wi<77> ksze lub r<> wne od' ;
$zmSlangOpGt = 'wi<77> ksze od' ;
$zmSlangOpLtEq = 'mniejsze lub r<> wne od' ;
$zmSlangOpLt = 'mniejsze od' ;
$zmSlangOpNe = 'r<> <72> ne od' ;
$zmSlangOptionHelp = 'OpcjePomoc' ;
$zmSlangOptionRestartWarning = 'Te zmiany mog<6F> nie przynie<69> natychmiastowego efektu\ndop<6F> ki system pracuje. Kiedy sko<6B> czysz\nrobi<62> zmiany prosz<73> konicznie\nzrestartowa<77> ZoneMinder.' ;
$zmSlangOptions = 'Opcje' ;
$zmSlangOrEnterNewName = 'lub wpisz now<6F> nazw<7A> ' ;
$zmSlangOrientation = 'Orientacja' ;
$zmSlangOverwriteExisting = 'Nadpisz istniej<65> ce' ;
$zmSlangPaged = 'Stronicowane' ;
$zmSlangParameter = 'Parametr' ;
$zmSlangPassword = 'Has<61> o' ;
$zmSlangPasswordsDifferent = 'Has<61> a: nowe i potwierdzone s<> r<> <72> ne!' ;
$zmSlangPaths = '<27> cie<69> ki' ;
$zmSlangPhoneBW = 'Tel. prz.' ;
$zmSlangPixels = 'pikseli' ;
$zmSlangPleaseWait = 'Prosz<73> czeka<6B> ' ;
$zmSlangPostEventImageBuffer = 'Bufor obraz<61> w po zdarzeniu' ;
$zmSlangPreEventImageBuffer = 'Bufor obraz<61> w przed zdarzeniem' ;
$zmSlangPrev = 'Wstecz' ;
$zmSlangRate = 'Tempo' ;
$zmSlangReal = 'Rzeczywiste' ;
$zmSlangRecord = 'Zapis' ;
$zmSlangRefImageBlendPct = 'Mix z obrazem odniesienia' ;
$zmSlangRefresh = 'Od<4F> wie<69> ' ;
$zmSlangRemoteHostName = 'Nazwa zdalnego hosta' ;
$zmSlangRemoteHostPath = 'Scie<69> ka zdalnego hosta' ;
$zmSlangRemoteHostPort = 'Port zdalnego hosta' ;
$zmSlangRemoteImageColours = 'Kolory zdalnego obrazu' ;
$zmSlangRemote = 'Zdalny' ;
$zmSlangRename = 'Zmie<69> nazw<7A> ' ;
$zmSlangReplay = 'Powt<77> rka' ;
$zmSlangResetEventCounts = 'Kasuj licznik zdarze<7A> ' ;
$zmSlangRestarting = 'Restartuj<75> ' ;
$zmSlangRestart = 'Restart' ;
$zmSlangRestrictedCameraIds = 'Numery kamer' ;
$zmSlangRotateLeft = 'Obr<62> <72> w lewo' ;
$zmSlangRotateRight = 'Obr<62> <72> w prawo' ;
$zmSlangRunMode = 'Tryb pracy' ;
$zmSlangRunning = 'Pracuje' ;
$zmSlangRunState = 'Stan pracy' ;
$zmSlangSaveAs = 'Zapisz jako' ;
$zmSlangSaveFilter = 'Zapisz filtr' ;
$zmSlangSave = 'Zapisz' ;
$zmSlangScale = 'Skala' ;
$zmSlangScore = 'Wynik' ;
$zmSlangSecs = 'Sekund' ;
$zmSlangSectionlength = 'D<> ugo<67> <6F> sekcji' ;
$zmSlangServerLoad = 'Obci<63> <69> enie serwera' ;
$zmSlangSetLearnPrefs = 'Ustaw preferencje nauki' ; // This can be ignored for now
$zmSlangSetNewBandwidth = 'Ustaw now<6F> przepustowo<77> <6F> ' ;
$zmSlangSettings = 'Ustawienia' ;
$zmSlangShowFilterWindow = 'Poka<6B> OknoFiltru' ;
$zmSlangSource = '<27> r<EFBFBD> d<EFBFBD> o' ;
$zmSlangSourceType = 'Typ <20> r<EFBFBD> d<EFBFBD> a' ;
$zmSlangStart = 'Start' ;
$zmSlangState = 'Stan' ;
$zmSlangStats = 'Statystyki' ;
$zmSlangStatus = 'Status' ;
$zmSlangStills = 'Nieruchome' ;
$zmSlangStopped = 'Zatrzymany' ;
$zmSlangStop = 'Stop' ;
$zmSlangStream = 'Ruchomy' ;
$zmSlangSystem = 'System' ;
$zmSlangTimeDelta = 'R<> <52> nica czasu' ;
$zmSlangTimestampLabelFormat = 'Format etykiety czasu' ;
$zmSlangTimestampLabelX = 'Etykieta czasu X' ;
$zmSlangTimestampLabelY = 'Etykieta czasu Y' ;
$zmSlangTimestamp = 'Czas' ;
$zmSlangTimeStamp = 'Piecz<63> <7A> czasu' ;
$zmSlangTime = 'Czas' ;
$zmSlangTools = 'Narz<72> dzia' ;
$zmSlangTotalBrScore = 'Ca<43> kowity<br/>wynik' ;
$zmSlangTriggers = 'Wyzwalacze' ;
$zmSlangType = 'Typ' ;
$zmSlangUnarchive = 'Niezarchiwizowane' ;
$zmSlangUnits = 'Jednostki' ;
$zmSlangUnknown = 'Nieznany' ;
$zmSlangUseFilterExprsPost = ' wyra<72> enie filtru' ; // This is used at the end of the phrase 'use N filter expressions'
$zmSlangUseFilterExprsPre = 'U<> yj ' ; // This is used at the beginning of the phrase 'use N filter expressions'
$zmSlangUseFilter = 'U<> yj filtru' ;
$zmSlangUsername = 'Nazwa u<> ytkownika' ;
$zmSlangUsers = 'U<> ytkownicy' ;
$zmSlangUser = 'U<> ytkownik' ;
$zmSlangValue = 'Warto<74> <6F> ' ;
$zmSlangVideoGenFailed = 'Generowanie Video nie powiod<6F> o si<73> !' ;
$zmSlangVideoGenParms = 'Parametery generowania Video' ;
$zmSlangVideoSize = 'Rozmiar Video' ;
$zmSlangVideo = 'Video' ;
$zmSlangViewAll = 'Zobacz wszystko' ;
$zmSlangViewPaged = 'Zobacz stronami' ;
$zmSlangView = 'Podgl<67> d' ;
$zmSlangWarmupFrames = 'Ciep<65> e ramki' ;
$zmSlangWatch = 'podgl<67> d' ;
$zmSlangWeb = 'Web' ;
$zmSlangWeek = 'Tydzie<69> ' ;
$zmSlangX10ActivationString = 'X10 String aktywuj<75> cy' ;
$zmSlangX10InputAlarmString = 'X10 String wej<65> cia alarmu' ;
$zmSlangX10OutputAlarmString = 'X10 String wyj<79> cia alarmu' ;
$zmSlangX10 = 'X10' ;
$zmSlangYes = 'Tak' ;
$zmSlangYouNoPerms = 'Nie masz uprawnie<69> na dost<73> p do tego zasobu.' ;
$zmSlangZoneAlarmColour = 'Kolor alarmu (RGB)' ;
$zmSlangZoneAlarmThreshold = 'Pr<50> g alarmu (0>=?<=255)' ;
$zmSlangZoneFilterHeight = 'Wysoko<6B> <6F> filtru (piksele)' ;
$zmSlangZoneFilterWidth = 'Szeroko<6B> <6F> filtru (piksele)' ;
$zmSlangZoneMaxAlarmedArea = 'Maksymalny obszar alamowany' ;
$zmSlangZoneMaxBlobArea = 'Maksymalny obszar Bloba' ;
$zmSlangZoneMaxBlobs = 'Maksymalne Bloby' ;
$zmSlangZoneMaxFilteredArea = 'Maksymalny obszar filtrowany' ;
$zmSlangZoneMaxX = 'Maksimum X (prawo)' ;
$zmSlangZoneMaxY = 'Maksimum Y (d<> <64> )' ;
$zmSlangZoneMinAlarmedArea = 'Minimalny obszar alamowany' ;
$zmSlangZoneMinBlobArea = 'Minimalny obszar Bloba' ;
$zmSlangZoneMinBlobs = 'Minimalne Bloby' ;
$zmSlangZoneMinFilteredArea = 'Minimalny obszar filtrowany' ;
$zmSlangZoneMinX = 'Minimum X (lewo)' ;
$zmSlangZoneMinY = 'Minimum Y (g<> ra)' ;
$zmSlangZones = 'Strefy' ;
$zmSlangZone = 'Strefa' ;
// Complex replacements with formatting and/or placements, must be passed through sprintf
$zmClangCurrentLogin = 'Aktualny login \'%1$s\'' ;
$zmClangEventCount = '%1$s %2$s' ;
$zmClangLastEvents = 'Ostatnie %1$s %2$s' ;
$zmClangMonitorCount = '%1$s %2$s' ;
$zmClangMonitorFunction = 'Monitor %1$s Funkcja' ;
2004-01-21 18:55:02 +08:00
// The next section allows you to describe a series of word ending and counts used to
// generate the correctly conjugated forms of words depending on a count that is associated
// with that word.
// This intended to allow phrases such a '0 potatoes', '1 potato', '2 potatoes' etc to
// conjugate correctly with the associated count.
// In some languages such as English this is fairly simple and can be expressed by assigning
// a count with a singular or plural form of a word and then finding the nearest (lower) value.
// So '0' of something generally ends in 's', 1 of something is singular and has no extra
// ending and 2 or more is a plural and ends in 's' also. So to find the ending for '187' of
// something you would find the nearest lower count (2) and use that ending.
//
// So examples of this would be
// $zmVlangPotato = array( 0=>'Potatoes', 1=>'Potato', 2=>'Potatoes' );
// $zmVlangSheep = array( 0=>'Sheep' );
//
// where you can have as few or as many entries in the array as necessary
// If your language is similar in form to this then use the same format and choose the
// appropriate zmVlang function below.
// If however you have a language with a different format of plural endings then another
// approach is required . For instance in Russian the word endings change continuously
// depending on the last digit (or digits) of the numerator. In this case then zmVlang
// arrays could be written so that the array index just represents an arbitrary 'type'
// and the zmVlang function does the calculation about which version is appropriate.
//
// So an example in Russian might be (using English words, and made up endings as I
// don't know any Russian!!)
// $zmVlangPotato = array( 1=>'Potati', 2=>'Potaton', 3=>'Potaten' );
//
// and the zmVlang function decides that the first form is used for counts ending in
// 0, 5-9 or 11-19 and the second form when ending in 1 etc.
//
// Variable arrays expressing plurality, see the zmVlang description above
2004-01-21 18:35:50 +08:00
$zmVlangEvent = array ( 0 => 'Zdarze<7A> ' , 1 => 'Zdarzenie' , 2 => 'Zdarzenia' );
$zmVlangMonitor = array ( 0 => 'Monitor<6F> w' , 1 => 'Monitor' , 2 => 'Monitory' );
2004-01-21 18:55:02 +08:00
// You will need to choose or write a function that can correlate the plurality string arrays
// with variable counts. This is used to conjugate the Vlang arrays above with a number passed
// in to generate the correct noun form.
//
// In languages such as English this is fairly simple
// Note this still has to be used with printf etc to get the right formating
function zmVlang ( $lang_var_array , $count )
{
krsort ( $lang_var_array );
foreach ( $lang_var_array as $key => $value )
{
if ( abs ( $count ) >= $key )
{
return ( $value );
}
}
die ( 'Error, unable to correlate variable language string' );
}
// This is an version that could be used in the Russian example above
// The rules are that the first word form is used if the count ends in
// 0, 5-9 or 11-19. The second form is used then the count ends in 1
// (not including 11 as above) and the third form is used when the
// count ends in 2-4, again excluding any values ending in 12-14.
//
// function zmVlang( $lang_var_array, $count )
// {
// $secondlastdigit = substr( $count, -2, 1 );
// $lastdigit = substr( $count, -1, 1 );
// // or
// // $secondlastdigit = ($count/10)%10;
// // $lastdigit = $count%10;
//
// // Get rid of the special cases first, the teens
// if ( $secondlastdigit == 1 && $lastdigit != 0 )
// {
// return( $lang_var_array[1] );
// }
// switch ( $lastdigit )
// {
// case 0 :
// case 5 :
// case 6 :
// case 7 :
// case 8 :
// case 9 :
// {
// return( $lang_var_array[1] );
// break;
// }
// case 1 :
// {
// return( $lang_var_array[2] );
// break;
// }
// case 2 :
// case 3 :
// case 4 :
// {
// return( $lang_var_array[3] );
// break;
// }
// }
// die( 'Error, unable to correlate variable language string' );
// }
// This is an example of how the function is used in the code which you can uncomment and
// use to test your custom function.
//$monitors = array();
//$monitors[] = 1; // Choose any number
//echo sprintf( $zmClangMonitorCount, count($monitors), zmVlang( $zmVlangMonitor, count($monitors) ) );
// In this section you can override the default prompt and help texts for the options area
2004-01-21 22:20:53 +08:00
// These overrides are in the form of $zmOlangPrompt<option> and $zmOlangHelp<option>
2004-01-21 18:55:02 +08:00
// where <option> represents the option name minus the initial ZM_
// So for example, to override the help text for ZM_LANG_DEFAULT do
2004-01-21 22:20:53 +08:00
// $zmOlangPromptLANG_DEFAULT = "This is a new prompt for this option";
// $zmOlangHelpLANG_DEFAULT = "This is some new help for this option which will be displayed in the popup window when the ? is clicked";
2004-01-21 18:55:02 +08:00
//
2004-01-21 18:35:50 +08:00
?>