Skip to content

Commit

Permalink
EZP-26835 : Fix file reference in extract translations + update files
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Bastien committed Jan 31, 2017
1 parent 72dc938 commit 48a82f2
Show file tree
Hide file tree
Showing 7 changed files with 117 additions and 116 deletions.
3 changes: 2 additions & 1 deletion bin/extract-translations.sh 100644 → 100755
Expand Up @@ -13,6 +13,7 @@ echo '# Extract RepositoryForms';
"$@"

echo '# Clean file references';
sed -i "s|/../../../../.././vendor/ezsystems/repository-forms/|/|g" ./vendor/ezsystems/repository-forms/bundle/Resources/translations/*.xlf
sed -i "s|>.*/vendor/ezsystems/repository-forms/|>|g" ./vendor/ezsystems/repository-forms/bundle/Resources/translations/*.xlf

cd vendor/ezsystems/repository-forms;
echo 'Translation extraction done';
20 changes: 10 additions & 10 deletions bundle/Resources/translations/ezrepoforms_content.en.xlf
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:jms="urn:jms:translation" version="1.2">
<file date="2017-01-17T11:01:24Z" source-language="en" target-language="en" datatype="plaintext" original="not.available">
<file date="2017-01-26T15:03:32Z" source-language="en" target-language="en" datatype="plaintext" original="not.available">
<header>
<tool tool-id="JMSTranslationBundle" tool-name="JMSTranslationBundle" tool-version="1.1.0-DEV"/>
<note>The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.</note>
Expand All @@ -10,55 +10,55 @@
<source>Cancel</source>
<target>Cancel</target>
<note>key: content.cancel_button</note>
<jms:reference-file line="49">/lib/Form/Type/Content/ContentEditType.php</jms:reference-file>
<jms:reference-file line="49">lib/Form/Type/Content/ContentEditType.php</jms:reference-file>
</trans-unit>
<trans-unit id="e735240930546ee4e9ae782ffa95ee09d846665a" resname="content.field.non_editable">
<source>This field is not editable.</source>
<target>This field is not editable.</target>
<note>key: content.field.non_editable</note>
<jms:reference-file line="14">/bundle/Resources/views/Content/content_form.html.twig</jms:reference-file>
<jms:reference-file line="14">bundle/Resources/views/Content/content_form.html.twig</jms:reference-file>
</trans-unit>
<trans-unit id="7a3eb3ea13db1c9d6a0bd64c7d249a45e7b83b52" resname="content.field_type.ezuser.email">
<source>E-mail:</source>
<target>E-mail:</target>
<note>key: content.field_type.ezuser.email</note>
<jms:reference-file line="46">/lib/Form/Type/User/UserAccountType.php</jms:reference-file>
<jms:reference-file line="46">lib/Form/Type/User/UserAccountType.php</jms:reference-file>
</trans-unit>
<trans-unit id="4c65e5d17516c19e311161e374bbd39f053b5e6b" resname="content.field_type.ezuser.password">
<source>Password:</source>
<target>Password:</target>
<note>key: content.field_type.ezuser.password</note>
<jms:reference-file line="42">/lib/Form/Type/User/UserAccountType.php</jms:reference-file>
<jms:reference-file line="42">lib/Form/Type/User/UserAccountType.php</jms:reference-file>
</trans-unit>
<trans-unit id="d2fe533f4032896195d524038c3abeb2209adece" resname="content.field_type.ezuser.password_confirm">
<source>Confirm password:</source>
<target>Confirm password:</target>
<note>key: content.field_type.ezuser.password_confirm</note>
<jms:reference-file line="43">/lib/Form/Type/User/UserAccountType.php</jms:reference-file>
<jms:reference-file line="43">lib/Form/Type/User/UserAccountType.php</jms:reference-file>
</trans-unit>
<trans-unit id="d1f5c5fcee7eb206e496dd5073b0f95427431a1c" resname="content.field_type.ezuser.username">
<source>Username:</source>
<target>Username:</target>
<note>key: content.field_type.ezuser.username</note>
<jms:reference-file line="35">/lib/Form/Type/User/UserAccountType.php</jms:reference-file>
<jms:reference-file line="35">lib/Form/Type/User/UserAccountType.php</jms:reference-file>
</trans-unit>
<trans-unit id="1120fc646c853c462aa4cdf634f476004846fc1b" resname="content.publish_button">
<source>Publish</source>
<target>Publish</target>
<note>key: content.publish_button</note>
<jms:reference-file line="43">/lib/Form/Type/Content/ContentEditType.php</jms:reference-file>
<jms:reference-file line="43">lib/Form/Type/Content/ContentEditType.php</jms:reference-file>
</trans-unit>
<trans-unit id="49c0762cf87e038e38a06090625eadb4fbbc99ed" resname="content.save_button">
<source>Save draft</source>
<target>Save draft</target>
<note>key: content.save_button</note>
<jms:reference-file line="47">/lib/Form/Type/Content/ContentEditType.php</jms:reference-file>
<jms:reference-file line="47">lib/Form/Type/Content/ContentEditType.php</jms:reference-file>
</trans-unit>
<trans-unit id="df2f594c4b24eb1a49a45e95a5e7ed5cdef802bd" resname="ezrepoforms.content.fields">
<source>ezrepoforms.content.fields</source>
<target>ezrepoforms.content.fields</target>
<note>key: ezrepoforms.content.fields</note>
<jms:reference-file line="39">/lib/Form/Type/Content/ContentEditType.php</jms:reference-file>
<jms:reference-file line="39">lib/Form/Type/Content/ContentEditType.php</jms:reference-file>
</trans-unit>
</body>
</file>
Expand Down

0 comments on commit 48a82f2

Please sign in to comment.