Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

inspect translation with poedit #337

Closed
aeneasr opened this issue May 2, 2016 · 10 comments
Closed

inspect translation with poedit #337

aeneasr opened this issue May 2, 2016 · 10 comments
Assignees

Comments

@aeneasr
Copy link
Member

aeneasr commented May 2, 2016

No description provided.

@aeneasr aeneasr added this to the Sprint 05/2016 milestone May 2, 2016
@inyono
Copy link
Member

inyono commented May 2, 2016

still doesn't work, even with Poedit 1.8.7 and Twig Gettext Extractor 1.2.0, still umpirsky/Twig-Gettext-Extractor#12. Does it work with your setup, @arekkas? If so, can you please tell me your PoEdit/TGE/gettext versions?

@inyono
Copy link
Member

inyono commented May 9, 2016

ping @arekkas

@aeneasr aeneasr assigned aeneasr and unassigned inyono May 10, 2016
@aeneasr
Copy link
Member Author

aeneasr commented May 10, 2016

Do you have xgettext installed? If not, that could be one reason. It looks like Poedit 1.8.7. works as expected. I got an error like:

 /Library/WebServer/Documents/workspace/php/athene2/bin/twig-gettext-extractor --sort-output --force-po -o "/var/folders/c3/sys_sm612kg6mph4r640m_bc0000gn/T/poeditEU74F7/69extracted.pot" --from-code=UTF-8  -k_ -kgettext -kgettext_noop -ktranslate -kpageHeader -ksetSubtitle -kaddMessage -kaddSuccessMessage -kaddErrorMessage -ksetLabel -ksetLegend -kt -L PHP --files  "./../module/Ui/templates/admin/debugger.twig" "./../module/Ui/templates/ads/ads.twig" "./../module/Ui/templates/ads/create.twig" "./../module/Ui/templates/ads/setAdPage.twig" "./../module/Ui/templates/ads/shuffle.twig" "./../module/Ui/templates/ads/update.twig" "./../module/Ui/templates/authentication/activate.twig" "./../module/Ui/templates/authentication/change-password.twig" "./../module/Ui/templates/authentication/login.twig" "./../module/Ui/templates/authentication/logout.twig" "./../module/Ui/templates/authentication/reset-password/restore.twig" "./../module/Ui/templates/authentication/reset-password/select.twig" "./../module/Ui/templates/blog/blog/view-all.twig" "./../module/Ui/templates/blog/blog/view-partial.twig" "./../module/Ui/templates/blog/blog/view.twig" "./../module/Ui/templates/common/share.twig"

If you executed that cmd in the cmdline you'll see why it's failing. In my case, xgettext is missing. However, after installing xgettext there are still issues.

@aeneasr
Copy link
Member Author

aeneasr commented May 10, 2016

Hm, that's really weird. Executing

/Library/WebServer/Documents/workspace/php/athene2/bin/twig-gettext-extractor --sort-output --force-po -o "/var/folders/c3/sys_sm612kg6mph4r640m_bc0000gn/T/poeditKOqyvQ/69extracted.pot" --from-code=UTF-8  -k_ -kgettext -kgettext_noop -ktranslate -kpageHeader -ksetSubtitle -kaddMessage -kaddSuccessMessage -kaddErrorMessage -ksetLabel -ksetLegend -kt -L PHP --files 

 "./../module/Ui/templates/admin/debugger.twig" 
 "./../module/Ui/templates/ads/ads.twig" 
 "./../module/Ui/templates/ads/create.twig" 
 "./../module/Ui/templates/ads/setAdPage.twig" 
 "./../module/Ui/templates/ads/shuffle.twig"
 "./../module/Ui/templates/ads/update.twig" 
 "./../module/Ui/templates/authentication/activate.twig" 
 "./../module/Ui/templates/authentication/change-password.twig" 
 "./../module/Ui/templates/authentication/login.twig" 
 "./../module/Ui/templates/authentication/logout.twig" 
 "./../module/Ui/templates/authentication/reset-password/restore.twig" 
 "./../module/Ui/templates/authentication/reset-password/select.twig" 
 "./../module/Ui/templates/blog/blog/view-all.twig" 
 "./../module/Ui/templates/blog/blog/view-partial.twig" 
 "./../module/Ui/templates/blog/blog/view.twig" 
 "./../module/Ui/templates/common/share.twig"

in the terminal works fine, but poedit refuses to execute it. Not sure why.

Please be aware that you need to run


`WXTRACE=poedit,poedit.tmp,poedit.execute /Applications/Poedit.app/Contents/MacOS/Poedit --verbose --keep-temp-files`

to fix the permission error.

@aeneasr
Copy link
Member Author

aeneasr commented May 10, 2016

I added a bunch of missing aliases. However, the issues are still not resolved: d315e4d

@aeneasr aeneasr assigned inyono and unassigned aeneasr May 10, 2016
@inyono
Copy link
Member

inyono commented May 10, 2016

xgettext is installed, command fails anyway. When running it in the command line, it doesn't print anything...

Will look into your three links, soon

@aeneasr
Copy link
Member Author

aeneasr commented May 10, 2016

ok i experienced the same issue...

@aeneasr
Copy link
Member Author

aeneasr commented May 10, 2016

poedit 1.5 fails as well

@inyono inyono modified the milestones: Sprint 05/2016, Sprint 06/2016 Jun 6, 2016
@inyono inyono closed this as completed in 536f9db Jun 8, 2016
@inyono inyono removed the in progress label Jun 8, 2016
@inyono
Copy link
Member

inyono commented Jun 8, 2016

for i in $(find src/module/Ui/templates -name '*.twig')
do
  ./bin/twig-gettext-extractor --sort-output --force-po -o ${i}.po -L PHP --files ${i}
done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants