简体   繁体   English

xgettext仅不从特定目录中拾取字符串

[英]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.

相关问题 flake8 没有在用户目录中获取全局配置文件 - flake8 is not picking up global configuration file in user directory 线程未从Queue接手更多工作 - Threads not picking up more work from Queue Python 字符串替换在 api 请求中拾取垃圾字符 - Python string substitution picking up junk characters in api requests 没有在从文件读取的行上的 if 语句中选择条件 - Not picking up a condition in an if statement on a line read from a file 如何删除从字符串到 Python 中特定字符的所有内容 - How to delete everything from string up to the specific character in Python Django 不接函数 - Django not picking up the functions 如何从字符串中提取字符串然后将字符串转换为列表并仅从列表中获取特定值? - how to extract the string from the string then convert the string to list and get only specific values from the list? 我正在尝试安装要求,但它没有从 pip.conf 文件中获取值 - I am trying to install requirements, but it is not picking up values from pip.conf file pyautogui.pixel 从实际位置的左上角拾取颜色 - pyautogui.pixel picking up color from upper left of actual position 从具有相同值集的多个键中选择一个键 - picking up one key from multiple keys having same set of values
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM