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
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