Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file gettextCompat.ml
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091(**************************************************************************)(* ocaml-gettext: a library to translate messages *)(* *)(* Copyright (C) 2003-2008 Sylvain Le Gall <sylvain@le-gall.net> *)(* *)(* This library is free software; you can redistribute it and/or *)(* modify it under the terms of the GNU Lesser General Public *)(* License as published by the Free Software Foundation; either *)(* version 2.1 of the License, or (at your option) any later version; *)(* with the OCaml static compilation exception. *)(* *)(* This library 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 *)(* Lesser General Public License for more details. *)(* *)(* You should have received a copy of the GNU Lesser General Public *)(* License along with this library; if not, write to the Free Software *)(* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *)(* USA *)(**************************************************************************)openGettextTypesopenGettextCategoryopenGettextModulesletunsafe_format_of_stringfmtstr=iffalsethenObj.magicstrelseformat_of_stringfmtletbindtextdomaintextdomaindirt=upgrade_textdomainttextdomain(None,Somedir)letbind_textdomain_codesettextdomaincodesett=upgrade_textdomainttextdomain(Somecodeset,None)lettextdomaindefaultt={twithdefault}letget_textdomaint=t.defaultletgettextt'str=t'falseNonestrNoneLC_MESSAGESletfgettextt'fmt=unsafe_format_of_stringfmt(t'trueNone(string_of_formatfmt)NoneLC_MESSAGES)letdgettextt'textdomainstr=t'false(Sometextdomain)strNoneLC_MESSAGESletfdgettextt'textdomainfmt=unsafe_format_of_stringfmt(t'true(Sometextdomain)(string_of_formatfmt)NoneLC_MESSAGES)letdcgettextt'textdomainstrcategory=t'false(Sometextdomain)strNonecategoryletfdcgettextt'textdomainfmtcategory=unsafe_format_of_stringfmt(t'true(Sometextdomain)(string_of_formatfmt)Nonecategory)letngettextt'strstr_pluraln=t'falseNonestr(Some(str_plural,n))LC_MESSAGESletfngettextt'fmtfmt_pluraln=iftruethenunsafe_format_of_stringfmt(t'trueNone(string_of_formatfmt)(Some(string_of_formatfmt_plural,n))LC_MESSAGES)elsefmt_pluralletdngettextt'textdomainstrstr_pluraln=t'false(Sometextdomain)str(Some(str_plural,n))LC_MESSAGESletfdngettextt'textdomainfmtfmt_pluraln=iftruethenunsafe_format_of_stringfmt(t'true(Sometextdomain)(string_of_formatfmt)(Some(string_of_formatfmt_plural,n))LC_MESSAGES)elsefmt_pluralletdcngettextt'textdomainstrstr_pluralncategory=t'false(Sometextdomain)str(Some(str_plural,n))categoryletfdcngettextt'textdomainfmtfmt_pluralncategory=iftruethenunsafe_format_of_stringfmt(t'true(Sometextdomain)(string_of_formatfmt)(Some(string_of_formatfmt_plural,n))category)elsefmt_plural