Bug 959636 - Transifex expression check problem
Summary: Transifex expression check problem
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora Documentation
Classification: Retired
Component: security-guide
Version: devel
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Eric Christensen
QA Contact: Fedora Docs QA
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-04 12:22 UTC by KATO Tomoyuki
Modified: 2013-05-15 14:54 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-05-15 14:54:00 UTC
Embargoed:


Attachments (Terms of Use)
Patch fixing the 100% issue (618 bytes, patch)
2013-05-06 22:15 UTC, Eric Christensen
no flags Details | Diff
[PATCH] initial import (142.31 KB, patch)
2013-05-15 14:16 UTC, Eric Christensen
no flags Details | Diff
[PATCH] test commit (1.36 KB, patch)
2013-05-15 14:17 UTC, Eric Christensen
no flags Details | Diff
[PATCH] end test commit. it works. wee (774 bytes, patch)
2013-05-15 14:20 UTC, Eric Christensen
no flags Details | Diff
[PATCH] 3.2. SELinux Contexts for Subjects (3.16 KB, patch)
2013-05-15 14:22 UTC, Eric Christensen
no flags Details | Diff
[PATCH] fixing possibly broken book ;) (3.88 KB, patch)
2013-05-15 14:24 UTC, Eric Christensen
no flags Details | Diff
[PATCH] update to include next chapter (1.05 KB, patch)
2013-05-15 14:24 UTC, Eric Christensen
no flags Details | Diff
[PATCH] starting new chapter on Targeted Policy (1.66 KB, patch)
2013-05-15 14:25 UTC, Eric Christensen
no flags Details | Diff

Description KATO Tomoyuki 2013-05-04 12:22:55 UTC
Description of problem:
  I encountered error message saying  
    "The expression '% a' is not present in the translation." 
  while translating strings below[1] on transifex[2]. 
  So, I couldn't save translation strings. 
  But, this string '% a' is not gettext expression. 
  If there is a blank characters following '%',  
  you should not check it, shouldn't you? 

Version-Release number of selected component (if applicable):
  Fedora 19

How reproducible:
  Always.

Steps to Reproduce:
1. Go to Fedora Security Guide on Transifex.
2. Translate strings that contains character '%'.
    
  e.g. https://fedora.transifex.com/projects/p/fedora-security-guide/translate/#ja/Pam/12083673 

3. Click "Save".
  
Actual results:
  "The expression '% a' is not present in the translation." 
 
Expected results:
  Save translated strings.

Additional info:

Comment 1 Eric Christensen 2013-05-06 22:15:20 UTC
Created attachment 744353 [details]
Patch fixing the 100% issue

Comment 2 Eric Christensen 2013-05-06 22:16:51 UTC
Is this an acceptable fix?

Comment 3 KATO Tomoyuki 2013-05-07 01:01:08 UTC
It looks well.

However, can't a writer using transifex use '%' character?

Comment 4 Eric Christensen 2013-05-07 01:04:56 UTC
I have no idea.  I wouldn't think that the '%' character would be bad unless it would need to be escaped as a variable.  I'd prefer to use a word there instead of the number.

Comment 5 KATO Tomoyuki 2013-05-09 05:13:00 UTC
Thanks a lot. please use a word there instead of the number. please close this issue.
In some case, you can use "%" instead of '%'.

Comment 6 Eric Christensen 2013-05-15 14:16:55 UTC
Created attachment 748312 [details]
[PATCH] initial import

Comment 7 Eric Christensen 2013-05-15 14:17:03 UTC
Created attachment 748313 [details]
[PATCH] test commit

 SELinux_User_Guide/en-US/Contexts_and_Attributes.xml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comment 8 Eric Christensen 2013-05-15 14:20:28 UTC
Created attachment 748325 [details]
[PATCH] end test commit. it works. wee

 SELinux_User_Guide/en-US/Contexts_and_Attributes.xml | 1 -
 1 file changed, 1 deletion(-)

Comment 9 Eric Christensen 2013-05-15 14:22:19 UTC
Created attachment 748326 [details]
[PATCH] 3.2. SELinux Contexts for Subjects

- adding content

---
 .../en-US/Contexts_and_Attributes.xml              | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Comment 10 Eric Christensen 2013-05-15 14:24:40 UTC
Created attachment 748327 [details]
[PATCH] fixing possibly broken book ;)

 .../en-US/Contexts_and_Attributes.xml              | 46 ++--------------------
 1 file changed, 4 insertions(+), 42 deletions(-)

Comment 11 Eric Christensen 2013-05-15 14:24:50 UTC
Created attachment 748328 [details]
[PATCH] update to include next chapter

 SELinux_User_Guide/en-US/SELinux_User_Guide.xml | 1 +
 1 file changed, 1 insertion(+)

Comment 12 Eric Christensen 2013-05-15 14:25:01 UTC
Created attachment 748329 [details]
[PATCH] starting new chapter on Targeted Policy

 SELinux_User_Guide/en-US/Targeted_Policy.xml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Comment 13 Eric Christensen 2013-05-15 14:38:16 UTC
Sorry, just added wrong patch!


Note You need to log in before you can comment on or make changes to this bug.