Commit Graph

43 Commits (25734cf5067ccfe838f5ec5df6b6bd7f053d3620)

Author SHA1 Message Date
Slávek Banko fa09639dea
CMakeL10n: Prevent exclusion _translatorinfo when using X-POT.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
4 years ago
Slávek Banko 285ad7baee
CMakeL10n: Fix the path for loading additional POT files.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
4 years ago
Slávek Banko 7eac0a0f68
CMakeL10n: Avoid option --use-first for msguniq call
because it causes loss of comments and information about
the location of strings in source files. Instead, clean
the ugly comments from the template.

Instead of msgcat, the CMake code is now used for joining
POT files, then repeating POT file headers are removed and
msguniq is used to merge unique strings.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
4 years ago
Slávek Banko 5bf1d5e81f
CMakeL10n: Allow to use more than one X-POT files.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
4 years ago
Slávek Banko ae0ecf194b
Adjust CMakeL10n module to search for tde.pot in 'core/tdelibs' folder.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
4 years ago
Michele Calgaro 35d0198787
Added search for additional files to tde_l10n_create_template.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
4 years ago
Slávek Banko 55cdb3a75e
Update TDEL10n module
+ Add *.theme and eventsrc to files known as desktop style.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko f5b58cdd21
Update TDEL10n module
+ Add --from-code=UTF-8 to xgettext call.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko f6f7bfc007
Update TDEL10n module
+ Fix comment replacement and flag addition for _translatorinfo.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko 4ced9fd928
Update TDEL10n module
+ For _translatorinfo strings, replace the references
  to an intentionally non-existent source file and use
  instead comments explaining the purpose of these strings.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko e8a95f169e
tde_create_translated_desktop: Allow spaces around the equal sign.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko 1f4d4093ad
Update TDEL10n module
+ Simplify entering a catalog name for placement in a directory of the same name.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko f07fe12daf
Update TDEL10n module
+ Add a function to prepare for extracting strings from desktop files.
-- xgettext creates an incorrect reference to the source file line
-- xgettext does not allow the keyword to be used as a comment

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko aa852adcd2
Update TDEL10n module
+ Pick *.directory, *.kcsrc and *.themerc files as desktop style files.
+ Add the ability to specify source files explicitly as desktop style.
+ Override default keywords for desktop style files to exclude Icon.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko 5121b9a41d
Update TDEL10n module
+ Add new options to function tde_l10n_prepare_xml
-- preserve / remove multiple line breaks
-- this fix the extraction from tips files

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 8a3bf7134b
Update TDEL10n module
+ Use IS_ABSOLUTE ${file} instead of ${file} MATCHES "^/".

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 5c09613711
Update TDEL10n module
+ Add ability to skip the contents of selected <property> tags.
+ Fixed incorrect processing of the unpaired tags.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 6246f2b46a
Update TDEL10n module
+ Add ability to specify a template with strings that should not be extracted.
+ Fixed detection of required programs.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 99d63e8212
Update TDEL10n module
+ Added ability to extract strings from documentation.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko a1f62e6239
Update TDEL10n module
+ Use excludes also on files for extracting attributes.
+ Add ability to extract multiple attributes for one source_spec.
+ Add function to prepare attributes from XML files for xgettext.
+ Use tde_l10n_prepare_xmlattr function instead of extractattr script.
+ Handle working files for multiple extractions from the same source file.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko fb7e1dfc82
Update TDEL10n module
+ Add option to determine comments to extract.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 3306290834
Update TDEL10n module
+ Add a way to disable default keywords.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 67db9032d9
Update TDEL10n module
+ Fix unwanted double processing of resource files.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 72ca5313ec
Update TDEL10n module
+ Implement tde_l10n_preparetips using the tde_l10n_prepare_xml function.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 3c40942680
Update TDEL10n module
+ Use tde_l10n_prepare_xml function instead of extractrc script.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 8f3b50336f
Update TDEL10n module
+ Fix tde_l10n_prepare_xml when processing a line
  that contains only word "no".

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko c1f45d8f90
Update TDEL10n module
+ Add new options to function tde_l10n_prepare_xml
-- override the context by using the tag attribute
-- preserve / remove leading empty lines

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 1c07907821
Update TDEL10n module
+ Added function to prepare XML files for xgettext.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 98f96eb509
Update TDEL10n module
+ Fix unwanted semicolons processing within CMake
  on extracted resources and attributes.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko b88855a293
Update TDEL10n module
+ Fix unwanted semicolons processing within CMake.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko e66f00401f
Update TDEL10n module
+ Added ability to merge additional template.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 45cfe22ac8
Update TDEL10n module
+ CMP0007 setting is no longer needed.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko ebe1ddc721
Update TDEL10n module
+ Allow missed keyword CATALOG, if the catalog name is the first argument.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 3779b941ef
Update TDEL10n module
+ Added options for determining the destination directory.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 4eb308f914
Update TDEL10n module
+ Little modification in code formatting.
+ Added comment about editing the list inside foreach.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 0f348d894e
Update TDEL10n module
+ Use file( READ ) during updating references for resources
  because file( STRINGS ) has problems with special characters.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 990c0c1132
Update TDEL10n module
+ Changed the concept of naming functions and macros.
+ Now all the functions and macros begin with "tde_l10n_".

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 97ab4f494c
Update TDEL10n module
+ Added automatic handling of the "_translatorinfo" file.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko dcb28a87ae
Update TDEL10n module
+ Added the ability to process tips files.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 1f90129fec
Update TDEL10n module
+ Input files with the extension ".tde_l10n" are considered
  as temporary modified source files.
+ Location information for such files in generated POT file
  will be modified to refer to the corresponding original
  files without the extension ".tde_l10n".
+ After the POT file is generated, these temporary modified
  source files will be automatically deleted.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 13a14899d5
Update TDEL10n module
+ Added option to exclude files from processing.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 451ca41345
Update TDEL10n module
+ Added the ability to extract strings using extractattr.
+ Added a description of using the tde_create_l10n_template macro.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko f87cec4baa
Add TDEL10n module
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago