Skip to content

Commit

Permalink
Merge pull request #96 from SalesforceFoundation/feature/dmitry-local…
Browse files Browse the repository at this point in the history
…ization-summer-20

Loc deliver, drop 1 for Summer20
  • Loading branch information
ptewson-sfdo authored Jul 23, 2020
2 parents 0c7704a + a15eef8 commit 243fd7e
Show file tree
Hide file tree
Showing 17 changed files with 130 additions and 75 deletions.
5 changes: 2 additions & 3 deletions cumulusci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ tasks:
options:
output_style: salesforce
elements:
- path: src/translations/**.translation
xpath: //ns:customLabels[ns:name='Matching_Donation_Record_Suffix']
- path: src/translations/**.translation
xpath: //ns:quickActions
- path: src/translations/**.translation
xpath: //ns:reportTypes[ns:name='screen_flows_prebuilt_crt']

tasks:
uninstall_packaged_incremental:
options:
ignore:
Expand Down
56 changes: 56 additions & 0 deletions localization/translation-cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#!/bin/bash

## Verify that hasSampleData is set to false before continuing
if grep -q '"hasSampleData": true' orgs/feature.json
then
echo "WARNING: The feature.json still has \"hasSampleData\" set to true. Cannot continue until this is set to false."
exit
fi

echo "###############################################################################################"
echo "What this script does:"
echo "1. Deploy all metadata to a scratch org"
echo "2. Use the cci 'retrieve_unpackaged' command to retrieve all configuration from the org into the src folder"
echo "3. Reset and/or delete any retrieved metadata that is unrelalated to translations"
echo "4. Execute the cci 'cleanup_translation_metadata' task against the metadata to strip invalid or extranous xml content"
echo ""
echo ""
echo "When the script has fully completed, the developer should review any pending changes in an IDE, such as VSCode"
echo "to verify that all changes are expected."
echo ""
echo "ONLY changes to the 'objectTranslation' and 'translation' files should be commited to the repository."
echo "ALL OTHER CHANGED FILES SHOULD BE IGNORED."
echo "###############################################################################################"
read -s -n 1 -p "Press any key to continue ..."
echo ""

echo "# ==== CREATE THE SCRATCH ORG ===="
cci org remove translations
cci org scratch feature translations --days 1
cci flow run dependencies --org translations
cci flow run deploy_unmanaged --org translations
cci task run update_admin_profile --org translations

echo "# ==== RESET the Package.xml and use retrieve_unpackaged to pull down the metadata ===="
git checkout src/package.xml
cci task run retrieve_unpackaged --org translations -o path src -o package_xml src/package.xml

cci org remove translations

echo "# ==== DISCARD other files pulled down by the above task that we do not need ===="
git checkout src/classes/*
git checkout src/homePageComponents/*
git checkout src/labels/*
git checkout src/layouts/*
git checkout src/objects/*
git checkout src/pages/*
git checkout src/reports/*
git checkout src/tabs/*
git checkout src/weblinks/*
git checkout src/workflows/*
git checkout src/package.xml

echo "# ==== CLEANUP task to strip out extraneous elements from the translation files ===="
cci task run cleanup_translation_metadata

echo "# ==== DONE! - Review the remaining modified translation files before committing back into the branch"
10 changes: 5 additions & 5 deletions src/objectTranslations/Account-ja.objectTranslation
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomObjectTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<fields>
<help>団体の主個人、または 1 対 1 団体の 1 対 1 個人。</help>
<label>主個人</label>
<help>取引先の主取引先責任者、または 1 対 1 取引先の 1 対 1 取引先責任者。</help>
<label>主取引先責任者</label>
<name>One2OneContact__c</name>
<relationshipLabel>団体</relationshipLabel>
<relationshipLabel>取引先</relationshipLabel>
</fields>
<fields>
<help>この団体が通常の団体ではなく個人の特殊な団体 (世帯、1 対 1、個人) であるかを示します。</help>
<help>この取引先が通常の取引先ではなく取引先責任者の特殊な取引先 (世帯、1 対 1、個人) であるかを示します。</help>
<label>_SYSTEM: IsIndividual</label>
<name>SYSTEMIsIndividual__c</name>
</fields>
<fields>
<help>この団体が、世帯団体、1 対 1、個人 (バケット) のうち、どの団体モデルのものであるかを示します。</help>
<help>この取引先が、世帯取引先、1 対 1、個人 (バケット) のうち、どの取引先モデルのものであるかを示します。</help>
<label>_SYSTEM: AccountType</label>
<name>SYSTEM_AccountType__c</name>
</fields>
Expand Down
14 changes: 7 additions & 7 deletions src/objectTranslations/Contact-ja.objectTranslation
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<name>Home_Address__c</name>
</fields>
<fields>
<help>数式: 設定の順序、[SYSTEM_AccountType] 項目、[団体種別] 項目、および「団体」。</help>
<help>数式: 設定の順序、[SYSTEM_AccountType] 項目、[取引先種別] 項目、および「団体」。</help>
<label>団体種別</label>
<name>Organization_Type__c</name>
</fields>
Expand All @@ -26,7 +26,7 @@
<name>Other_Address__c</name>
</fields>
<fields>
<help>この個人に関連するほとんどのコミュニケーションで使用する電話番号は?</help>
<help>この取引先責任者に関連するほとんどのコミュニケーションで使用する電話番号は?</help>
<label>電話連絡先</label>
<name>PreferredPhone__c</name>
<picklistValues>
Expand All @@ -47,7 +47,7 @@
</picklistValues>
</fields>
<fields>
<help>この個人に関連するほとんどのコミュニケーションで使用するメールは?</help>
<help>この取引先責任者に関連するほとんどのコミュニケーションで使用するメールは?</help>
<label>メール連絡先</label>
<name>Preferred_Email__c</name>
<picklistValues>
Expand Down Expand Up @@ -81,7 +81,7 @@
</picklistValues>
</fields>
<fields>
<help>この個人を個人の団体の処理から除外します。[団体] 項目を空白にすると、空白のままになります。</help>
<help>この取引先責任者を個人の取引先の処理から除外します。[取引先] 項目を空白にすると、空白のままになります。</help>
<label>非公開</label>
<name>Private__c</name>
</fields>
Expand All @@ -103,7 +103,7 @@
</picklistValues>
</fields>
<fields>
<help>使用停止-個人 (バケット) モデルと 1 対 1 モデルのどちらで団体リレーションが動作するかを示します</help>
<help>使用停止-個人 (バケット) モデルと 1 対 1 モデルのどちらで取引先リレーションが動作するかを示します</help>
<label>廃止 - _SYSTEM: ACCOUNT PROCESSOR</label>
<name>SystemAccountProcessor__c</name>
<picklistValues>
Expand All @@ -116,8 +116,8 @@
</picklistValues>
</fields>
<fields>
<help>数式: 団体設定によって、「個人」または「団体」。</help>
<label>団体種別</label>
<help>数式: 取引先設定によって、「個人」または「団体」。</help>
<label>取引先種別</label>
<name>Type_of_Account__c</name>
</fields>
<fields>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@
</fields>
<fields>
<help>ERSETZT. Das Auslöserverhalten wird jetzt über die Seite &quot;Auslöserkonfiguration&quot; in den NPSP-Einstellungen gesteuert.</help>
<label>ERSETZT-Accountmodellauslöser deaktivieren</label>
<label>ERSETZT-Accountmodellauslöser deaktiv.</label>
<name>Disable_Account_Model_Trigger__c</name>
</fields>
<fields>
<help>ERSETZT. Das Auslöserverhalten wird jetzt über die Seite &quot;Auslöserkonfiguration&quot; in den NPSP-Einstellungen gesteuert.</help>
<label>ERSETZT-OppContactRole-Auslöser aktivieren</label>
<label>ERSETZT-OppContactRole-Auslöser aktiv.</label>
<name>Enable_Opportunity_Contact_Role_Trigger__c</name>
</fields>
<fields>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<value><!-- Contacts And Orgs Settings --></value>
</caseValues>
<fields>
<help>団体モデルの設定。「世帯団体」、「1 対 1」、「個人」のいずれかを指定します。カスタム項目 Contact.SystemAccountProcessor__c の代わりに使用されます。「世帯団体」が推奨モデルです。</help>
<label>団体モデル</label>
<help>取引先モデルの設定。「世帯取引先」、「1 対 1」、「個人」のいずれかを指定します。カスタム項目 Contact.SystemAccountProcessor__c の代わりに使用されます。「世帯取引先」が推奨モデルです。</help>
<label>取引先モデル</label>
<name>Account_Processor__c</name>
</fields>
<fields>
Expand All @@ -30,13 +30,13 @@
<name>DISABLE_OpportunityPayments_trigger__c</name>
</fields>
<fields>
<help>リード取引開始時に支援を作成するかどうかを指定します。</help>
<label>リード取引開始時に支援を作成</label>
<help>リード取引開始時に商談を作成するかどうかを指定します。</help>
<label>リード取引開始時に商談を作成</label>
<name>Default_Opp_on_Convert__c</name>
</fields>
<fields>
<help>廃止。トリガの動作が [NPSP 設定] の [トリガ設定] ページで制御されるようになりました。</help>
<label>廃止-団体モデルトリガの無効化</label>
<label>廃止-取引先モデルトリガの無効化</label>
<name>Disable_Account_Model_Trigger__c</name>
</fields>
<fields>
Expand All @@ -50,8 +50,8 @@
<name>Enable_Update_Check__c</name>
</fields>
<fields>
<help>世帯団体に使用される団体レコードタイプの ID。何も選択しない場合、団体にはユーザのデフォルト団体レコードタイプが設定されます。</help>
<label>世帯団体レコードタイプ</label>
<help>世帯取引先に使用される取引先レコードタイプの ID。何も選択しない場合、取引先にはユーザのデフォルト取引先レコードタイプが設定されます。</help>
<label>世帯取引先レコードタイプ</label>
<name>HH_Account_RecordTypeID__c</name>
</fields>
<fields>
Expand All @@ -70,13 +70,13 @@
<name>Max_Package_Version__c</name>
</fields>
<fields>
<help>1 対 1 団体で使用される団体レコードタイプの ID。何も選択しない場合、団体にはユーザのデフォルト団体レコードタイプが設定されます。</help>
<help>1 対 1 取引先で使用される取引先レコードタイプの ID。何も選択しない場合、取引先にはユーザのデフォルト取引先レコードタイプが設定されます。</help>
<label>1 対 1 レコードタイプ</label>
<name>One_to_One_RecordTypeID__c</name>
</fields>
<fields>
<help>支援の団体が世帯、1 対 1、または個人の団体でない場合に、支援の主個人に自動的に割り当てられるデフォルトの個人の役割。</help>
<label>個人支援の個人の役割</label>
<help>商談の取引先が世帯、1 対 1、または個人の取引先でない場合に、商談の主取引先責任者に自動的に割り当てられるデフォルトの取引先責任者の役割。</help>
<label>個人支援の取引先責任者の役割</label>
<name>Opportunity_Contact_Role_Default_role__c</name>
</fields>
<fields>
Expand All @@ -85,7 +85,7 @@
<name>Package_Update_URL__c</name>
</fields>
<fields>
<help>有効な場合、新しい支援の支払が自動的に作成されます。</help>
<help>有効な場合、新しい商談 (支援) の支払が自動的に作成されます。</help>
<label>自動支払作成</label>
<name>Payments_Enabled__c</name>
</fields>
Expand Down
2 changes: 1 addition & 1 deletion src/objectTranslations/OppPayment__c-ja.objectTranslation
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<name>Custom_Payment_Field__c</name>
</fields>
<fields>
<label>支援</label>
<label>商談</label>
<name>Opportunity__c</name>
<relationshipLabel>支払</relationshipLabel>
</fields>
Expand Down
2 changes: 1 addition & 1 deletion src/objectTranslations/Opportunity-es.objectTranslation
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</fields>
<fields>
<help>Si los pagos están activos y este campo está seleccionado, no se creará un nuevo pago automáticamente para esta oportunidad.</help>
<label>No crear pago automáticamente pago</label>
<label>No crear pago automáticamente</label>
<name>Do_Not_Automatically_Create_Payment__c</name>
</fields>
<fields>
Expand Down
6 changes: 3 additions & 3 deletions src/objectTranslations/Opportunity-fr.objectTranslation
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<name>Amount_Outstanding__c</name>
</fields>
<fields>
<help>Valeur totale des paiements marqués comme déduits ou non percevables pour cette opportunité.</help>
<label>Montant de déduction de paiement</label>
<help>Valeur totale des paiements marqués comme déduits ou non recouvrables pour cette opportunité.</help>
<label>Montant de la déduction du paiement</label>
<name>Amount_Written_Off__c</name>
</fields>
<fields>
Expand Down Expand Up @@ -76,7 +76,7 @@
</fields>
<fields>
<help>La valeur totale des paiements marqués comme reçus pour cette opportunité.</help>
<label>Montant de paiement reçu</label>
<label>Montant du paiement reçu</label>
<name>Payments_Made__c</name>
</fields>
<webLinks>
Expand Down
22 changes: 11 additions & 11 deletions src/objectTranslations/Opportunity-ja.objectTranslation
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomObjectTranslation xmlns="http://soap.sforce.com/2006/04/metadata">
<fields>
<help>数式: この支援から取消支払金額と受取支払金額を差し引いた金額。</help>
<help>数式: この商談から取消支払金額と受取支払金額を差し引いた金額。</help>
<label>残高</label>
<name>Amount_Outstanding__c</name>
</fields>
<fields>
<help>この支援で取消または回収不可とマークされた支払の合計値。</help>
<help>この商談で取消または回収不可とマークされた支払の合計値。</help>
<label>取消支払金額</label>
<name>Amount_Written_Off__c</name>
</fields>
<fields>
<help>個人の役割の作成で個人 ID を渡すための非表示項目。</help>
<label>役割の個人 ID</label>
<help>取引先責任者の役割の作成で取引先責任者 ID を渡すための非表示項目。</help>
<label>役割の取引先責任者 ID</label>
<name>Contact_Id_for_Role__c</name>
</fields>
<fields>
<help>支払が有効な場合にオンにすると、この支援の新しい支払は自動的に作成されません。</help>
<help>支払が有効な場合にオンにすると、この商談の新しい支払は自動的に作成されません。</help>
<label>支払を自動的に作成しない</label>
<name>Do_Not_Automatically_Create_Payment__c</name>
</fields>
<fields>
<help>数式: 関連団体が個人として定義されているかどうか (SYSTEMIsIndividual__c)</help>
<help>数式: 関連取引先が個人として定義されているかどうか (SYSTEMIsIndividual__c)</help>
<label>個人からの支援</label>
<name>Is_Opp_From_Individual__c</name>
</fields>
<fields>
<help>最終会員レベル項目の個人または団体に基づいて値を決定します。</help>
<help>最終会員レベル項目の取引先責任者または取引先に基づいて値を決定します。</help>
<label>会員レベル</label>
<name>Member_Level__c</name>
<picklistValues>
Expand Down Expand Up @@ -70,21 +70,21 @@
<name>Membership_Start_Date__c</name>
</fields>
<fields>
<help>この「支援」に対する「支払」データの件数です。</help>
<help>この「商談 (支援)」に対する「支払」データの件数です。</help>
<label>支払回数</label>
<name>Number_of_Payments__c</name>
</fields>
<fields>
<help>この「支援」に対する「支払」データの中で、既に支払われた金額です</help>
<help>この「商談対する「支払」データの中で、既に支払われた金額です</help>
<label>受取支払金額</label>
<name>Payments_Made__c</name>
</fields>
<webLinks>
<label>新しい個人支援</label>
<label>新しい取引先責任者支援</label>
<name>New_Contact_Donation</name>
</webLinks>
<webLinks>
<label>新しい団体支援</label>
<label>新しい取引先支援</label>
<name>New_Organization_Donation</name>
</webLinks>
</CustomObjectTranslation>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<value><!-- Payment Field Mapping Settings --></value>
</caseValues>
<fields>
<label>支援の項目</label>
<label>商談の項目</label>
<name>Opportunity_Field__c</name>
</fields>
<fields>
Expand Down
6 changes: 3 additions & 3 deletions src/translations/de.translation
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Wenn Sie NPSP3 und höher verwenden, wird das Haushalt-Accountmodell empfohlen.<
<name>Opportunity_Contact_Role_Error_Bad_Contact_Id</name>
</customLabels>
<customPageWebLinks>
<label><!-- Nonprofit Edition Reports --></label>
<label><!-- DEPRECATED: Nonprofit Edition Reports --></label>
<name>Nonprofit_Edition_Reports</name>
</customPageWebLinks>
<customTabs>
Expand All @@ -99,7 +99,7 @@ Wenn Sie NPSP3 und höher verwenden, wird das Haushalt-Accountmodell empfohlen.<
<name>Contacts_Settings</name>
</customTabs>
<customTabs>
<label>Zahlungszuordnung</label>
<label>Zahlungszuweisung</label>
<name>Payment_Mapping</name>
</customTabs>
</Translations>
</Translations>
4 changes: 2 additions & 2 deletions src/translations/es.translation
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Para aquellos que utilizan NPSP3 y versiones posteriores, se recomienda el model
<name>Opportunity_Contact_Role_Error_Bad_Contact_Id</name>
</customLabels>
<customPageWebLinks>
<label><!-- Nonprofit Edition Reports --></label>
<label><!-- DEPRECATED: Nonprofit Edition Reports --></label>
<name>Nonprofit_Edition_Reports</name>
</customPageWebLinks>
<customTabs>
Expand All @@ -102,4 +102,4 @@ Para aquellos que utilizan NPSP3 y versiones posteriores, se recomienda el model
<label>Asignación de pagos</label>
<name>Payment_Mapping</name>
</customTabs>
</Translations>
</Translations>
4 changes: 2 additions & 2 deletions src/translations/fr.translation
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Pour ceux qui utilisent NPSP3 et versions ultérieures, le modèle de compte foy
<name>Opportunity_Contact_Role_Error_Bad_Contact_Id</name>
</customLabels>
<customPageWebLinks>
<label><!-- Nonprofit Edition Reports --></label>
<label><!-- DEPRECATED: Nonprofit Edition Reports --></label>
<name>Nonprofit_Edition_Reports</name>
</customPageWebLinks>
<customTabs>
Expand All @@ -102,4 +102,4 @@ Pour ceux qui utilisent NPSP3 et versions ultérieures, le modèle de compte foy
<label>Mappage de paiement</label>
<name>Payment_Mapping</name>
</customTabs>
</Translations>
</Translations>
2 changes: 1 addition & 1 deletion src/translations/iw.translation
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@
<label>מיפוי תשלומים</label>
<name>Payment_Mapping</name>
</customTabs>
</Translations>
</Translations>
Loading

0 comments on commit 243fd7e

Please sign in to comment.