[英]xgettext not picking up string from a specific directory only
I have python 3.5 application using tornado. 我有使用龙卷风的python 3.5应用程序。 I had separated my application in 4 directories: 我已经将我的应用程序分为四个目录:
app/ 应用/
--- admin ---管理员
--- server -服务器
--- admin_static --- admin_static
--- server_static --- server_static
and collecting string for the .po file is strange because never is going inside the app/admin folder to collect the strings. 收集.po文件的字符串很奇怪,因为永远不会进入app / admin文件夹来收集字符串。
When i run for app/server and app/server_static is collecting from both directories, but when i run for app/admin and app/admin_static is just collecting from app/admin_static and ignoring this directory app/admin 当我为app / server运行并且app / server_static从两个目录收集时,但是当我为app / admin运行并且app / admin_static从app / admin_static收集而忽略此目录app / admin时
find ../../admin ../../admin_static -iregex '.*\.\(py\|html\|js\)$' | xargs xgettext --language=Python --from-code utf-8 --keyword=_:1,2 -o ./locale.pot
when i run just this find ../../admin is working but with both directories is not working 当我只运行此查找../../admin时,但两个目录均不起作用
Thanks in advance for nay recommendation or any help 在此先感谢您的建议或任何帮助
After experimenting on Ubuntu, the answer was found. 在Ubuntu上进行实验后,找到了答案。
Sometimes the directory was ignored because was running the command bash in Windows, seems on windows is not so stable, after running same command on Ubuntu everything works fine. 有时该目录被忽略,因为在Windows中运行命令bash,在Windows上似乎不太稳定,在Ubuntu上运行相同的命令后一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.