mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 09:59:10 +02:00
added spanish support
git-svn-id: trunk@3392 -
This commit is contained in:
parent
e32657c3c0
commit
bba7efd634
4
.gitattributes
vendored
4
.gitattributes
vendored
@ -20,6 +20,7 @@ components/codetools/fileprocs.pas svneol=native#text/pascal
|
|||||||
components/codetools/finddeclarationcache.pas svneol=native#text/pascal
|
components/codetools/finddeclarationcache.pas svneol=native#text/pascal
|
||||||
components/codetools/finddeclarationtool.pas svneol=native#text/pascal
|
components/codetools/finddeclarationtool.pas svneol=native#text/pascal
|
||||||
components/codetools/keywordfunclists.pas svneol=native#text/pascal
|
components/codetools/keywordfunclists.pas svneol=native#text/pascal
|
||||||
|
components/codetools/languages/codetools.de.po svneol=native#text/plain
|
||||||
components/codetools/languages/codetools.po svneol=native#text/plain
|
components/codetools/languages/codetools.po svneol=native#text/plain
|
||||||
components/codetools/laz_dom.pas svneol=native#text/pascal
|
components/codetools/laz_dom.pas svneol=native#text/pascal
|
||||||
components/codetools/laz_xmlcfg.pas svneol=native#text/pascal
|
components/codetools/laz_xmlcfg.pas svneol=native#text/pascal
|
||||||
@ -519,8 +520,11 @@ images/unitdependencies/srctype_unknown_22x22.xpm -text svneol=native#image/x-xp
|
|||||||
images/uparrow.ico -text svneol=unset#image/x-icon
|
images/uparrow.ico -text svneol=unset#image/x-icon
|
||||||
images/uparrow.xpm -text svneol=native#image/x-xpixmap
|
images/uparrow.xpm -text svneol=native#image/x-xpixmap
|
||||||
languages/lazaruside.de.po svneol=native#text/plain
|
languages/lazaruside.de.po svneol=native#text/plain
|
||||||
|
languages/lazaruside.es.po svneol=native#text/plain
|
||||||
languages/lazaruside.po svneol=native#text/plain
|
languages/lazaruside.po svneol=native#text/plain
|
||||||
languages/lazaruside.ru.po svneol=native#text/plain
|
languages/lazaruside.ru.po svneol=native#text/plain
|
||||||
|
languages/objinspstrconsts.de.po svneol=native#text/plain
|
||||||
|
languages/objinspstrconsts.po svneol=native#text/plain
|
||||||
lcl/actnlist.pas svneol=native#text/pascal
|
lcl/actnlist.pas svneol=native#text/pascal
|
||||||
lcl/allunits.pp svneol=native#text/pascal
|
lcl/allunits.pp svneol=native#text/pascal
|
||||||
lcl/arrow.pp svneol=native#text/pascal
|
lcl/arrow.pp svneol=native#text/pascal
|
||||||
|
21
components/codetools/languages/codetools.de.po
Normal file
21
components/codetools/languages/codetools.de.po
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#: codetoolsstrconsts:ctsunknownsubdescriptor
|
||||||
|
msgid "(unknown subdescriptor %s)"
|
||||||
|
msgstr "(unbekannter subdescriptor %s)"
|
||||||
|
|
||||||
|
#: codetoolsstrconsts:ctsforward
|
||||||
|
msgid "Forward"
|
||||||
|
msgstr "Forward"
|
||||||
|
|
||||||
|
#: codetoolsstrconsts:ctsunparsed
|
||||||
|
msgid "Unparsed"
|
||||||
|
msgstr "Unparsed"
|
||||||
|
|
||||||
|
#: codetoolsstrconsts:ctsinvalidflagvaluefordirective
|
||||||
|
msgid "invalid flag value \"%s\" for directive %s"
|
||||||
|
msgstr "ungueltiges Flag \"%s\" bei Directive %s"
|
||||||
|
|
||||||
|
#: codetoolsstrconsts:ctsinvalidmode
|
||||||
|
msgid "invalid mode \"%s\""
|
||||||
|
msgstr "ungueltiger Mode \"%s\""
|
||||||
|
|
||||||
|
|
@ -672,15 +672,22 @@ begin
|
|||||||
Lang:=CustomLang;
|
Lang:=CustomLang;
|
||||||
FallbackLang:='';
|
FallbackLang:='';
|
||||||
end;
|
end;
|
||||||
|
// LCL
|
||||||
TranslateUnitResourceStrings('LclStrConsts',
|
TranslateUnitResourceStrings('LclStrConsts',
|
||||||
AppendPathDelim(BaseDirectory)+'lcl/languages/lcl.%s.mo',
|
AppendPathDelim(BaseDirectory)+'lcl/languages/lcl.%s.mo',
|
||||||
Lang,FallbackLang);
|
Lang,FallbackLang);
|
||||||
|
// IDE without objectinspector
|
||||||
TranslateUnitResourceStrings('LazarusIDEStrConsts',
|
TranslateUnitResourceStrings('LazarusIDEStrConsts',
|
||||||
AppendPathDelim(BaseDirectory)+'languages/lazaruside.%s.mo',
|
AppendPathDelim(BaseDirectory)+'languages/lazaruside.%s.mo',
|
||||||
Lang,FallbackLang);
|
Lang,FallbackLang);
|
||||||
|
// objectinspector
|
||||||
|
TranslateUnitResourceStrings('ObjInspStrConsts',
|
||||||
|
AppendPathDelim(BaseDirectory)+'languages/objinspstrconsts.%s.mo',
|
||||||
|
Lang,FallbackLang);
|
||||||
|
// CodeTools
|
||||||
TranslateUnitResourceStrings('CodeToolsStrConsts',
|
TranslateUnitResourceStrings('CodeToolsStrConsts',
|
||||||
AppendPathDelim(BaseDirectory)+'components/codetools/languages/codetools.%s.mo',
|
AppendPathDelim(BaseDirectory)+'components/codetools/languages/codetools.%s.mo',
|
||||||
Lang,FallbackLang);
|
Lang,FallbackLang);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{-------------------------------------------------------------------------------
|
{-------------------------------------------------------------------------------
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
The <lazarusdir>/languages directory contains all the stuff for
|
The <lazarusdir>/languages directory contains all the stuff for
|
||||||
internationalization of the lazarus IDE.
|
internationalization of the lazarus IDE.
|
||||||
|
|
||||||
All text and messages used in the IDE should be placed into the unit
|
All text and messages used in the IDE (except the special designer units)
|
||||||
lazarusidestrconsts.pas. This unit uses a resourcestring section, so that the
|
should be placed into the unit lazarusidestrconsts.pas. This unit uses a
|
||||||
compiler will create the <lazarusdir>/lazarusidestrconsts.rst file.
|
resourcestring section, so that the compiler will create the
|
||||||
|
<lazarusdir>/lazarusidestrconsts.rst file.
|
||||||
Since this is a fpc-only format it must be converted with the rstconv program:
|
Since this is a fpc-only format it must be converted with the rstconv program:
|
||||||
|
|
||||||
cd <lazarusdir>/languages
|
cd <lazarusdir>/languages
|
||||||
@ -15,6 +16,7 @@ in the procedure TranslateResourceStrings.
|
|||||||
|
|
||||||
german: lazaruside.de.po
|
german: lazaruside.de.po
|
||||||
russian (KOI8-R): lazaruside.ru.po
|
russian (KOI8-R): lazaruside.ru.po
|
||||||
|
spanish: lazaruside.es.po
|
||||||
|
|
||||||
|
|
||||||
After the translation, the lazaruside.xx.po file is converted to an .mo file
|
After the translation, the lazaruside.xx.po file is converted to an .mo file
|
||||||
@ -25,3 +27,6 @@ msgfmt -v -o lazaruside.xx.mo lazaruside.xx.po
|
|||||||
where xx is the language id.
|
where xx is the language id.
|
||||||
|
|
||||||
|
|
||||||
|
(The same for objinspstrconsts.xx.po)
|
||||||
|
|
||||||
|
|
||||||
|
2102
languages/lazaruside.es.po
Normal file
2102
languages/lazaruside.es.po
Normal file
File diff suppressed because it is too large
Load Diff
24
languages/objinspstrconsts.de.po
Normal file
24
languages/objinspstrconsts.de.po
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#: objinspstrconsts:oisobjectinspector
|
||||||
|
msgid "Object Inspector"
|
||||||
|
msgstr "Object Inspector"
|
||||||
|
|
||||||
|
#: objinspstrconsts:oisitemsselected
|
||||||
|
msgid " items selected"
|
||||||
|
msgstr " selektiert"
|
||||||
|
|
||||||
|
#: objinspstrconsts:oiscadd
|
||||||
|
msgid "&Add"
|
||||||
|
msgstr "Hinzufuegen"
|
||||||
|
|
||||||
|
#: objinspstrconsts:oiscdelete
|
||||||
|
msgid "&Delete"
|
||||||
|
msgstr "Loeschen"
|
||||||
|
|
||||||
|
#: objinspstrconsts:oisproperties
|
||||||
|
msgid "Properties"
|
||||||
|
msgstr "Properties"
|
||||||
|
|
||||||
|
#: objinspstrconsts:oisevents
|
||||||
|
msgid "Events"
|
||||||
|
msgstr "Events"
|
||||||
|
|
24
languages/objinspstrconsts.po
Normal file
24
languages/objinspstrconsts.po
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#: objinspstrconsts:oisobjectinspector
|
||||||
|
msgid "Object Inspector"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: objinspstrconsts:oisitemsselected
|
||||||
|
msgid " items selected"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: objinspstrconsts:oiscadd
|
||||||
|
msgid "&Add"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: objinspstrconsts:oiscdelete
|
||||||
|
msgid "&Delete"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: objinspstrconsts:oisproperties
|
||||||
|
msgid "Properties"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: objinspstrconsts:oisevents
|
||||||
|
msgid "Events"
|
||||||
|
msgstr ""
|
||||||
|
|
36
localize.sh
36
localize.sh
@ -1,11 +1,29 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
# This script may be used to compile all language.
|
# This script may be used to compile all language.
|
||||||
# This script is too small and simple to be licensed.
|
|
||||||
# Let's decide, that it is public property.
|
|
||||||
# If it can't be public property anywhere (or anywhy), it also can be of GPL 2.
|
|
||||||
|
|
||||||
msgfmt languages/lazaruside.de.po -o languages/lazaruside.de.mo
|
set -x
|
||||||
msgfmt languages/lazaruside.ru.po -o languages/lazaruside.ru.mo
|
|
||||||
msgfmt components/codetools/languages/codetools.ru.po -o components/codetools/languages/codetools.ru.mo
|
# IDE without objectinspector
|
||||||
msgfmt lcl/languages/lcl.de.po -o lcl/languages/lcl.de.mo
|
for lang in de ru es; do
|
||||||
msgfmt lcl/languages/lcl.ru.po -o lcl/languages/lcl.ru.mo
|
msgfmt languages/lazaruside.$lang.po -o languages/lazaruside.$lang.mo
|
||||||
|
done
|
||||||
|
|
||||||
|
# objectinspector
|
||||||
|
for lang in de; do
|
||||||
|
msgfmt languages/objinspstrconsts.$lang.po \
|
||||||
|
-o languages/objinspstrconsts.$lang.mo
|
||||||
|
done
|
||||||
|
|
||||||
|
# CodeTools
|
||||||
|
for lang in de; do
|
||||||
|
msgfmt components/codetools/languages/codetools.$lang.po \
|
||||||
|
-o components/codetools/languages/codetools.$lang.mo
|
||||||
|
done
|
||||||
|
|
||||||
|
# LCL
|
||||||
|
for lang in de; do
|
||||||
|
msgfmt lcl/languages/lcl.$lang.po -o lcl/languages/lcl.$lang.mo
|
||||||
|
done
|
||||||
|
|
||||||
|
# end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user