Commit Graph

26376 Commits

Author SHA1 Message Date
Daniel Kolesa 7cf6a8abb0 elua: line information in the generated output 2014-06-10 15:48:52 +01:00
Daniel Kolesa a0b8f72ae9 elua: respect msgstr prefix and suffix in xgettext 2014-06-10 15:48:52 +01:00
Daniel Kolesa b638f4d034 elua: respect comment tags in the lexer 2014-06-10 15:48:52 +01:00
Daniel Kolesa b2af5ff97e elua: pass opts, flags around 2014-06-10 15:48:52 +01:00
Daniel Kolesa 0e5f9bc151 elua: change xgettext lexer to never include delimiters and also expand \n escape sequence in short strings to actual newline (no other escapes get this treatment) 2014-06-10 15:48:52 +01:00
Daniel Kolesa 297f9a821a elua: almost functional xgettext generator 2014-06-10 15:48:52 +01:00
Daniel Kolesa d8010702e8 elua: initial stuff for the xgettext generator, check existence of all input files beforehand in the app, and other fixes 2014-06-10 15:48:52 +01:00
Daniel Kolesa a98b916a74 elua: get_cmdline_from_argv cleanup + use _popen on windows 2014-06-10 15:48:52 +01:00
Daniel Kolesa 4311dc0439 elua: fclose before realpath 2014-06-10 15:48:52 +01:00
Daniel Kolesa 0647e0e2c0 evil: remove fork (buggy) 2014-06-10 15:48:52 +01:00
Daniel Kolesa 489b5fac11 elua: do not use fork in our "array popen" impl; instead serialize args in a platform specific way 2014-06-10 15:48:52 +01:00
Daniel Kolesa cfae9b5eeb elua: if ugly, then at least portable (we already assume presence of bourne shell on windows, so a wrapper doesn't hurt) 2014-06-10 15:48:52 +01:00
Daniel Kolesa 30e5f11dc6 elua: generate Makevars from Makevars.in with a dynamic conditional... sadly there doesn't seem to be any other way... 2014-06-10 15:48:52 +01:00
Daniel Kolesa cf4256c94a elua: possible helper usage for different stuff than just generation 2014-06-10 15:48:52 +01:00
Daniel Kolesa 876adb13e5 elua: extra cond 2014-06-10 15:48:52 +01:00
Daniel Kolesa 91ba672609 elua: preparation for lua file generation 2014-06-10 15:48:52 +01:00
Daniel Kolesa 6558d1ccc9 elua: reformat C source to EFL style 2014-06-10 15:48:52 +01:00
Daniel Kolesa 5f1e08bddf elua: remove prefix stripping from lualian 2014-06-10 15:48:52 +01:00
Daniel Kolesa 6614d02a69 elua: update lualian against latest eolian API 2014-06-10 15:48:52 +01:00
Daniel Kolesa 6896f2949e elua: xgettext parser: proper keyword parsing 2014-06-10 15:48:51 +01:00
Daniel Kolesa a47dc77a8a elua: xgettext parser argument parsing 2014-06-10 15:48:51 +01:00
Daniel Kolesa 812a601548 elua: extend the xgettext parser a bit 2014-06-10 15:48:51 +01:00
Daniel Kolesa 839ce0f651 elua: xgettext keyword fix 2014-06-10 15:48:51 +01:00
Daniel Kolesa b168a515e2 elua: sanitize keywords and extract info in xgettext (include default keywords for lua), dgettext and dngettext compatibility calls 2014-06-10 15:48:51 +01:00
Daniel Kolesa 00bec70b69 elua: initial work on parser part of the extractor 2014-06-10 15:48:51 +01:00
Daniel Kolesa 3f4fd784c2 elua: file search function 2014-06-10 15:48:51 +01:00
Daniel Kolesa 7c449a14e1 elua: make xgettext use excluded_files, do some re-mappings, and have a default search dir 2014-06-10 15:48:51 +01:00
Daniel Kolesa 02ef160621 evil: add fork, adjust elua to use that 2014-06-10 15:48:51 +01:00
Daniel Kolesa 9c42595225 elua: popenv fix (read proper stack items as args), getopt fix (fixed array append), xgettext: use cutil.popenv 2014-06-10 15:48:51 +01:00
Daniel Kolesa e9b555c57b elua: popenv function 2014-06-10 15:48:51 +01:00
Daniel Kolesa a04948c02f elua: fork_win cleanup 2014-06-10 15:48:51 +01:00
Daniel Kolesa 420f7a869a elua: include fork_win.c in compilation 2014-06-10 15:48:51 +01:00
Daniel Kolesa 88ca0dbf3f elua: custom non-shell popen implementation 2014-06-10 15:48:51 +01:00
Daniel Kolesa 30415f9261 elua: fork impl for windows 2014-06-10 15:48:51 +01:00
Daniel Kolesa fd6c1f6888 elua: comment is a valid token in xgettext 2014-06-10 15:48:51 +01:00
Daniel Kolesa 5b7f44ea5b elua: add build_args function to core cutil library, for building normalized args string in a platform independent way 2014-06-10 15:48:51 +01:00
Daniel Kolesa 9bb3667e2b elua: xgettext is again at least partially functional 2014-06-10 15:48:51 +01:00
Daniel Kolesa 139502dc76 elua: handle all xgettext args correctly 2014-06-10 15:48:51 +01:00
Daniel Kolesa b1bfd90d40 elua: xgettext progress, currently broken 2014-06-10 15:48:51 +01:00
Daniel Kolesa 708aaeeb12 elua: pass opts to callback 2014-06-10 15:48:51 +01:00
Daniel Kolesa 6d739a8746 elua: ngettext support 2014-06-10 15:48:51 +01:00
Daniel Kolesa 63ccaee7fd elua: ability to specify custom opts table for each desc in getopt 2014-06-10 15:48:51 +01:00
Daniel Kolesa bc2b6b503f elua: simplified getopt (allocates fewer tables) 2014-06-10 15:48:51 +01:00
Daniel Kolesa 01a4fd89d2 elua: do not include the : in arg[0] 2014-06-10 15:48:51 +01:00
Daniel Kolesa ab05d47d7c elua: free format buffers immediately 2014-06-10 15:48:51 +01:00
Daniel Kolesa e8b356858b elua: never pcall in format, instead keep track of the types properly 2014-06-10 15:48:51 +01:00
Daniel Kolesa ebbce82403 elua: perform conversion beforehand 2014-06-10 15:48:51 +01:00
Daniel Kolesa 654653bc4a elua: check types manually instead of pcall in one place for format 2014-06-10 15:48:51 +01:00
Daniel Kolesa 5eccfb29b7 elua: some more checking for no value 2014-06-10 15:48:51 +01:00
Daniel Kolesa 0c7b3e5d6b elua: format bug fix 2014-06-10 15:48:51 +01:00