summaryrefslogtreecommitdiffstats
path: root/l10ntools
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert "remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls"Noel Grandin2013-11-201-15/+15
| | | | | | | This reverts commit acebbee971136e6ee0a7bc75bd57d937d6e1c295. I mistakenly converted OUString::equalsL calls to OUString::startsWith calls.
* remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL callsNoel Grandin2013-11-201-15/+15
| | | | | | | | | Convert code like: if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) to: if (aByteStr.startsWith("rem")) Change-Id: I09e40b3fdc87d59a8176c2a5f39cc6aa5cf5a576
* remove RTL_CONSTASCII_STRINGPARAM in OString constructorNoel Grandin2013-11-201-1/+1
| | | | | | | | | | Convert code like: OString aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX")); to: OString aKeyName("NDX"); which compiles down to the same code Change-Id: I1780264cae4484fc78f0586b0750c09f2dce135f
* remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::appendNoel Grandin2013-11-201-9/+9
| | | | | | | | | | Convert code like: aOStringBuf.append( RTL_CONSTASCII_STRINGPARAM( " is missing )") ); to: aOStringBuf.append( " is missing )" ); which compiles down to the same code. Change-Id: I3d8ed0cbf96a881686524a167412d5f303c06b71
* renamed ku* to kmr-Latn*, fdo#63460Eike Rathke2013-11-181-1/+1
| | | | Change-Id: I8069657d8829a0315c704e884a1cf15b26e02eb8
* good-bye stringex, you served wellAndras Timar2013-11-176-315/+0
| | | | | | | | | It will be better to handle Android Impress Remote localization independent of the big LibreOffice source tree. Instead of stringex, we will use android2po, a 3rd party utility for conversion strings.xml <-> pot/po. Change-Id: I4eae53e4f8d94c55e5564d54c5e5c214bc9569d7
* bugs.freedesktop.org -> bugs.libreoffice.orgAndras Timar2013-11-171-1/+1
| | | | Change-Id: I56c1190c93333636981acf2dd271515170a8a904
* qtz handling in ulfexAndras Timar2013-11-151-2/+2
| | | | | | | | | | | If we don't want to use qtz codes in .ulf files, then why do we write out qtz language with en-US content? In fact this patch would not be necessary, if I didn't find a build breaker bug, somehow sNewText was empty for certain strings, and the sNewText.copy(sNewText.indexOf('|') + 2) failed. Change-Id: Idf377e61391eb08ecb692a7c404d190659b97575
* do not merge translatable="false" strings to Android resourceAndras Timar2013-11-151-0/+24
| | | | Change-Id: Ie5653d0b03fb5090deaad6c70a9e3e638f6e24e0
* do not extract translatable="false" strings from Android resourceAndras Timar2013-11-151-10/+15
| | | | Change-Id: Id00ce654b99426c771b647e0ae6be02bfdc24359
* fixincludeguards.sh: l10ntoolsThomas Arnhold2013-11-0512-32/+32
| | | | Change-Id: I0fce5b2c59e468e936e3a0fa99ebd50c9d15d0cd
* Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin2013-10-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
* l10ntools: remove Package_ulfconvMichael Stahl2013-10-302-20/+0
| | | | Change-Id: I7a8c3fdf34951e00fca8c0a2543f33817fa874fa
* gbuild: set Package default target to INSTDIRMichael Stahl2013-10-281-0/+2
| | | | Change-Id: I2bc45e4ba63f5faaee7389bcd9d7b3f563503186
* convert code to use OUString::endsWithNoel Grandin2013-10-232-8/+4
| | | | | | | | | Convert places that call aStr[aStr.getLength()-1] == 'x' to use the shorter form aStr.endsWith("x") Change-Id: I1b3a19c0e89b8989cdbeed440f95fc76f9a4b6b6
* Bin comments that claim to say why some header is includedTor Lillqvist2013-10-221-1/+1
| | | | | | They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
* file list cleanupAndras Timar2013-10-111-20/+2
| | | | Change-Id: I7bffb6c976654e23e8728e902d7bac287e45afd3
* add sw/source/ui/inc/misc.hrcAndras Timar2013-10-111-0/+1
| | | | Change-Id: Id1e0d4241a356bdb08a44b3ae87c3d1023c4669e
* fix path of l10ntools in localize (solver has gone)Andras Timar2013-10-091-4/+2
| | | | Change-Id: I759b22ca0f5bf7e3405572088d79263dd978f43c
* fix po import of PairedListZolnai Tamás2013-09-271-5/+2
| | | | Change-Id: Ie086cf59ae86a845e0b84e0ecba7f7e578d83783
* Fix memory leaksMatteo Casalin2013-09-261-41/+32
| | | | | | | Change-Id: I21662cb52c51332700e1021ae55d92cb46ccc15a Reviewed-on: https://gerrit.libreoffice.org/6029 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Revert "More ICU dependencies that are now dragged in"Matúš Kukan2013-09-252-2/+0
| | | | | | | | | Should be fixed by 913f83ac52629a524c373d2504a0cb349446b371 This reverts commits 4dd261e526f43a364c645e7022c49b61c8001a39 30d7729586a60bef061261e9e59bf44768cc0196 4e2e1ca76f772d4644a21b82f79dfb4412a9c99f
* Add icudata here, tooTor Lillqvist2013-09-231-0/+1
| | | | Change-Id: I4bf39d3f4f21a0eb78e064c74ff47a47c9d0558c
* Seems that on the Android tinderboxes, icudata is needed by helpexTor Lillqvist2013-09-231-0/+1
| | | | | | But it built fine locally for me, huh. Oh well. Change-Id: Icef376a26eb8069eff002b2112a25363b5e18cb3
* Clean up l10ntools xml parser.Zolnai Tamás2013-09-183-716/+577
| | | | | | | | | | | | | -Remove namespaces from header. -Remove unused members (dbgcnt) -Remove helpless methods (SetValue, copy ctr and operator, inherited but not overriden virtual functions) -Use prefixes for variables -Use const where it possible -Remove visual noise -Correct indentation Change-Id: I295be484dde157847cd16f260ec70d5cdb5b6fb4
* Use OString in xmlparse.cxx to avoid numerous srting conversionZolnai Tamás2013-09-184-231/+179
| | | | | | | | Plus: - Use macros instead of members. - Use const where it is usefull. Change-Id: I960f5dec29b5c17655055e1884bc4e7983359318
* xmlparse.cxx: Useless const variablesZolnai Tamás2013-09-181-15/+7
| | | | Change-Id: Ia93f352a2e7069e910efcc1dc3810cc689fc18ac
* fdo#68790: fix build error on Win when system locale=="Japanese(Japan)"Tomofumi Yagi2013-09-144-6/+17
| | | | | | | | | | | | | | This patch modifies transex3. Modified transex3 outputs a file with BOM(if MergeMode is true). *.[hs]rc files with BOM avoid this problem. This problem is that MSVC interprets UTF-8 source code without BOM as local codepage when system locale is "Japanese(Japan)". Change-Id: I3e12499a91a954236f48e6d7e360d26c93d19ed6 Reviewed-on: https://gerrit.libreoffice.org/5851 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Kohei Yoshida <libreoffice@kohei.us> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
* fdo#69208 take getenv() call out of the loopTomofumi Yagi2013-09-121-1/+3
| | | | Change-Id: Iade7917eb9ade7248392e04f4653bda3674464aa
* changed all 'sh' language to 'sr-Latn'Eike Rathke2013-09-101-1/+1
| | | | Change-Id: Iafadaea87501bc3675eaf2856b5050a7e3ecaa37
* CID#1078786: fix memory leakMarkus Mohrhard2013-09-051-10/+14
| | | | Change-Id: I17a257f2abe90e8d489fa1af0e0889934dc3fd47
* CID#1078787: fix memory leakMarkus Mohrhard2013-09-051-6/+10
| | | | Change-Id: Ia54965d35ffe29e32b85cd720ecd41495ff72063
* renamed ca-XV to ca-valencia and activated ca-ES-valencia, fdo#59867 relatedEike Rathke2013-09-041-1/+1
| | | | | | | | | | | | | | | Build Catalan-Valencian as ca-valencia instead of ca-XV private-use. Introduced LANGUAGE_CATALAN_VALENCIAN 0x0803 mapping to ca-ES-valencia, preserving old ca-XV and qcv-ES mappings to now LANGUAGE_CATALAN_VALENCIAN and LANGUAGE_OBSOLETE_USER_CATALAN_VALENCIAN 0x8003 to ca-ES-valencia. Removed special !bUserInterfaceSelection treatment from MsLangId::getReplacementForObsoleteLanguage() and added the usual obsolete replacement instead. Change-Id: I2fdd8b0bac55d4b4ae2cbf3c3645f09fefec9b6e
* PoHeader constructure problem with boostNorbert Thiebaud2013-09-021-17/+37
| | | | | | | No idea why that seems to work on other platform but 10.6 SDK does not like it at all Change-Id: I145b03874ba948cb29c998552e852f29999bc471
* pocheck now removes entries from .po files which are incorrectViktor Varga2013-09-021-46/+198
| | | | | | | Change-Id: I1749714154be9c2aea7a8623719c38601abc13ba Reviewed-on: https://gerrit.libreoffice.org/5750 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
* pocheck: Math symbol names (from symbol.src) must not contain spacesAndras Timar2013-08-221-0/+33
| | | | Change-Id: I4195ae747229dd5f991acc8ed5764b42aeb73cf3
* downcast of address which does not point to an object of type 'XMLParentNode'Stephan Bergmann2013-08-221-3/+3
| | | | | | (note: object is of type 'XMLDefault'); Clang -fsanitize=undefined Change-Id: Idaa1e30068c389ed57977d40fc90410ec9ff3665
* finish deprecation of O(U)String::valueOf()Luboš Luňák2013-08-212-3/+3
| | | | | | | Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
* Missing + signsStephan Bergmann2013-08-201-11/+11
| | | | Change-Id: I60cfb30c7caab308a0cbe415ba04e1245ed3dd9c
* fdo#67786 pocheck tool for checking translationsAndras Timar2013-08-203-0/+302
| | | | | | | | | | | | | | | | Pootle has many checks, but there are cases which are not covered. Therefore I wrote a tool which checked three types of translation errors: 1. Unique style names. 2. Unique spreadsheet function names. 3. Missing trailing '|' in Windows installer translation. Usage: make cmd cmd=solver/*/bin/pocheck It checks all languages and prints the report to stdout. Change-Id: I89aad66ea41c0ebe4a6f45beaaf86afd1a6439cc
* Mark as constTakeshi Abe2013-07-291-1/+1
| | | | Change-Id: Ib78b25641ae20a3eb23545649f08b963e34c74ff
* coverity#1038312: Dereference before null checkJulien Nabet2013-07-221-4/+5
| | | | | | | Change-Id: Ibe9babbe8610bf70a80b819e21d24c6572436092 Reviewed-on: https://gerrit.libreoffice.org/5015 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* Search for char instead of 1 char long string, when possible.Thomas Arnhold2013-06-296-11/+11
| | | | | | follow-up of a7674482254ee996b1c4fee60f3064778be369aa Change-Id: I25f40c601454c092078307d931333af1bc1447ac
* fdo#66048: export cannot handle starting \\\"Zolnai Tamás2013-06-221-9/+1
| | | | | | | Old stuff. By now we always have to add double quotes to the edges of text. Change-Id: I14ca7283d723bf87fb232288d92e53393e90103e
* l10ntools: getLength() -> isEmpty()Zolnai Tamás2013-06-172-4/+4
| | | | Change-Id: I9272c244e22d87fbd2547f4fcb6b94493ffaad3a
* fdo#65483 Invalid po lines caused missing translationsZolnai Tamás2013-06-111-3/+6
| | | | | | | | L10ntools merge skipped reading po files entirely when got an invalid entry from one of these po files, by now just skip the invalid po file instead. Change-Id: I787d531e1842e53e2074690b1300a204abd928f5
* Better verification of bad idxdict inputStephan Bergmann2013-05-281-1/+11
| | | | | | | | ...see dictionaries comits df423c53829faa96f46acd71887fd0f8697c49e9 "fix Lithuanian thesaurus" and 9b6407dadc64e10e7117d8551917b46105ecc6c8 "Fix more thesauri." Change-Id: I6ddc41fce4e3f68d80d05af3320c835b98908fcb
* Source files shouldn't have executable bit set.Mark Wielaard2013-05-282-0/+0
| | | | | | | Change-Id: Iafad6249a7998d7c749c1ca2979a606078cfcb5e Reviewed-on: https://gerrit.libreoffice.org/4070 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* Escape quotes during stringex exportZolnai Tamás2013-05-261-2/+2
| | | | Change-Id: If53afd3743f44bcfffab33122657d14c0f4aba1e
* Fix some escaping bug in l10ntoolsZolnai Tamás2013-05-252-1/+5
| | | | | | | 1. A typo in export.cxx makes not working replacing 2. EscapeAll() ignored single backlash characters Change-Id: I1a5309778acdd601391f643ebf3c66d04a6601d4