diff import_properties.py import_project.py
40c40
< args = '<project> <gitrepo> <branch> <filemask> <filetype> <filetemplate>'
---
> args = '<project> <gitrepo> <branch> <filemask>'
111c111
< if len(args) != 6:
---
> if len(args) != 4:
115c115
< prjname, repo, branch, filemask, filetype, filetemplate = args
---
> prjname, repo, branch, filemask = args
151c151
< project, repo, branch, filemask, options['name_template'], filetype, filetemplate
---
> project, repo, branch, filemask, options['name_template']
176,178c176
< filemask=filemask.replace('**', match),
< file_format=filetype,
< template=filetemplate
---
> filemask=filemask.replace('**', match)
181c179
< def import_initial(self, project, repo, branch, filemask, name_template, filetype, filetemplate):
---
> def import_initial(self, project, repo, branch, filemask, name_template):
192a191
>
216,218c215
< filemask=filemask.replace('**', match),
< file_format=filetype,
< template=filetemplate
---
> filemask=filemask.replace('**', match)
40c40
< args = '<project> <gitrepo> <branch> <filemask> <filetype> <filetemplate>'
---
> args = '<project> <gitrepo> <branch> <filemask>'
111c111
< if len(args) != 6:
---
> if len(args) != 4:
115c115
< prjname, repo, branch, filemask, filetype, filetemplate = args
---
> prjname, repo, branch, filemask = args
151c151
< project, repo, branch, filemask, options['name_template'], filetype, filetemplate
---
> project, repo, branch, filemask, options['name_template']
176,178c176
< filemask=filemask.replace('**', match),
< file_format=filetype,
< template=filetemplate
---
> filemask=filemask.replace('**', match)
181c179
< def import_initial(self, project, repo, branch, filemask, name_template, filetype, filetemplate):
---
> def import_initial(self, project, repo, branch, filemask, name_template):
192a191
>
216,218c215
< filemask=filemask.replace('**', match),
< file_format=filetype,
< template=filetemplate
---
> filemask=filemask.replace('**', match)
27.06.2013, 15:22, "Маргасов Алексей" <[email protected]>:
I have a project with a lot of files translation. For this reason, there is no possibility to import them via a web interface.
I use the import_project, and I would like to pass an argument template file27.06.2013, 14:30, "Michal Čihař" <[email protected]>:,Hi
Dne Thu, 27 Jun 2013 11:02:58 +0600
Маргасов Алексей <[email protected]> napsal(a):Tell me how to use the parameter --name-template when start import_projectThis is mostly useful for adding prefix or suffix to the name, for
,
example foo-%s.
--
Michal Čihař | http://cihar.com | http://blog.cihar.com_______________________________________________
Weblate mailing list
[email protected]
https://lists.cihar.com/cgi-bin/mailman/listinfo/weblate_______________________________________________
Weblate mailing list
[email protected]
https://lists.cihar.com/cgi-bin/mailman/listinfo/weblate
_______________________________________________ Weblate mailing list [email protected] https://lists.cihar.com/cgi-bin/mailman/listinfo/weblate
