-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.vim
48 lines (40 loc) · 762 Bytes
/
macros.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
" 'title': {
" 'de': u'hans',
" 'en': u'john'
" },
" in
" 'title': _(u'hans', 'frontend'),
" umwandeln
/'\(title\|desc\|longdesc\)':/'de':f:llv/'en':k$hh"ux?{v%xi_("up/,\ni, 'frontend')
" 'desc': u'hans',
" in
" 'desc': {
" 'de': u'hans',
" 'en': u''
" },
" umwandeln
/\('desc'\|'longdesc'\):Wvf';xi{'de': pa,'en': u'',}
" Wrap visual selection with gettext call and mako tag
xi${_(u'pa', 'frontend')}
"
" 'images': ['hans', '' ,''
" '', ''],
" in
" 'image': 'hans',
/'images':fsxf[l"uda'F[v%x"uP
" wrap tag content with mako i18n
diti${_(u'pa', 'vanda')}
" wrap visual selection with mako i18n
di${_(u'pa', 'vanda')}
di${_(pa, 'vanda')}
di_(pa, 'vanda')