Commit Graph

26290 Commits

Author SHA1 Message Date
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
Daniel Kolesa b304316b81 elua: better error handling for format 2014-06-10 15:48:51 +01:00
Daniel Kolesa 3da9de3d41 elua: use string buffer in all places for format plus extra optimizations 2014-06-10 15:48:50 +01:00
Daniel Kolesa a6e50fa9c7 elua: use custom string buffer impl for format (avoids multiple table allocs and calls to string.char) 2014-06-10 15:48:50 +01:00
Daniel Kolesa 8738ca957d elua: slight optimization of format func 2014-06-10 15:48:50 +01:00
Daniel Kolesa 006a49ddda elua: relatively slow but very powerful string formatter with support for positional and named format arguments, invoked via % 2014-06-10 15:48:50 +01:00
Daniel Kolesa e33efdb745 elua: xgettext: support for -X 2014-06-10 15:48:50 +01:00
Daniel Kolesa c0baa15b11 elua: insert input files always after opts 2014-06-10 15:48:50 +01:00
Daniel Kolesa d90bba655f elua: expand the input file lists for xgettext call (we want to leave out lua files) 2014-06-10 15:48:50 +01:00
Daniel Kolesa bebe011676 elua: use the new app loading system 2014-06-10 15:48:50 +01:00
Daniel Kolesa 544bf37c30 elua: a general system for application loading without having to specify explicit path 2014-06-10 15:48:50 +01:00
Daniel Kolesa 85367d35be elua: match file extensions in a case insensitive way 2014-06-10 15:48:50 +01:00
Daniel Kolesa 38ae60f744 elua: more checks 2014-06-10 15:48:50 +01:00
Daniel Kolesa 69a64dd620 elua: a bit more informative getopt plus better arg handling when calling to xgettext 2014-06-10 15:48:50 +01:00
Daniel Kolesa 344c1cbaf1 elua: more informative getopt 2014-06-10 15:48:50 +01:00
Daniel Kolesa 55b7973e56 elua: xgettext lexer enhancements 2014-06-10 15:48:50 +01:00
Daniel Kolesa 23c27f06c5 elua: simplified source 2014-06-10 15:48:50 +01:00
Daniel Kolesa b71231d93d elua: typo fix 2014-06-10 15:48:50 +01:00
Daniel Kolesa 341d8a9168 elua: typo fix 2014-06-10 15:48:50 +01:00
Daniel Kolesa dd8e3b433f elua: use an appropriately sized buffer 2014-06-10 15:48:50 +01:00
Daniel Kolesa 6220dd5968 elua: lexer for xgettext 2014-06-10 15:48:50 +01:00
Daniel Kolesa fcbf219de4 elua: remove xgettext_wrapper, instead expand the whole command into Makevars 2014-06-10 15:48:50 +01:00
Daniel Kolesa cbeaf5b58a elua: utility func to exec a process (without spawning a shell like os.execute) 2014-06-10 15:48:50 +01:00
Daniel Kolesa 58409c521a elua: trigger xgettext execution from xgettext.lua, which is executed by xgettext_wrapper 2014-06-10 15:48:50 +01:00
Daniel Kolesa 4dfec82877 elua: support the EFL_RUN_IN_TREE environment variable 2014-06-10 15:48:50 +01:00
Daniel Kolesa b8d867b679 elua: use a xgettext wrapper 2014-06-10 15:48:50 +01:00
Daniel Kolesa 57ebf0e02c elua: initial code for xgettext.lua, a xgettext variant that supports lua
will be used to handle i18n for lua files in EFL (because only gettext 0.18.3+ supports Lua) and it'll be usable standalone too, it will also be able of handling more things than lua support in xgettext does (e.g. concatenated string literals will be considered one string)
2014-06-10 15:48:50 +01:00
Daniel Kolesa 3fd4399c6f elua: allow description of positional arguments in help in getopt (using metavar field without short/long) 2014-06-10 15:48:50 +01:00
Daniel Kolesa c427742634 elua: support for omitting things from help 2014-06-10 15:48:50 +01:00
Daniel Kolesa 8c047b6170 elua: support for eolian typedefs, unfrotunately it's just a stub for now as eolian typedefs haven't been landed in master yet 2014-06-10 15:48:50 +01:00
Daniel Kolesa 69ae66e083 elua: remove some superfluous fields in eolian bindings 2014-06-10 15:48:50 +01:00
Daniel Kolesa 3c42301f00 elua: in/out fix 2014-06-10 15:48:50 +01:00
Daniel Kolesa 176e41020d elua: remove leftover 2014-06-10 15:48:50 +01:00
Daniel Kolesa 98192dd8c3 elua: we don't need to include func name in conversion funcs (they're all the same...), also print out the required conversion functions during gen 2014-06-10 15:48:50 +01:00
Daniel Kolesa 13f3c616d5 elua: pass ownership information to converters 2014-06-10 15:48:49 +01:00
Daniel Kolesa e90973e5cb elua: eolian fix (return nil instead of null in type_information_get), generate different names for type conversion funcs 2014-06-10 15:48:49 +01:00
Daniel Kolesa a0838343cb elua: lualian reorg 2014-06-10 15:48:49 +01:00