Skip to content

Commit dabb9a3

Browse files
committed
refactor: Group string resources with regions
This commit improves the organization of the `strings.xml` file by grouping related string resources into collapsible regions using `<!-- region -->` and `<!-- endregion -->` comments. This enhances code readability and makes it easier to navigate the file.
1 parent 900802f commit dabb9a3

File tree

1 file changed

+63
-31
lines changed

1 file changed

+63
-31
lines changed

resources-logic/src/main/res/values/strings.xml

Lines changed: 63 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<resources xmlns:tools="http://schemas.android.com/tools">
1818

19-
<!-- Generic -->
19+
<!-- region Generic -->
2020
<string name="generic_error_message">Oups! Something went wrong</string>
2121
<string name="generic_error_description">If the issue persists, please contact customer support</string>
2222
<string name="generic_error_button_retry">TRY AGAIN</string>
@@ -49,8 +49,9 @@
4949
<string name="generic_filters_sort_by">Sort by</string>
5050
<string name="generic_filters_ascending">Ascending</string>
5151
<string name="generic_filters_descending">Descending</string>
52+
<!--endregion-->
5253

53-
<!-- Content Description -->
54+
<!-- region Content Description -->
5455
<string name="content_description_image_or_placeholder_icon">Image or placeholder icon</string>
5556
<string name="content_description_user_signature_icon">User signature</string>
5657
<string name="content_description_qr_code_icon">QR Code</string>
@@ -117,27 +118,31 @@
117118
<string name="content_description_open_in_browser_icon">Open in browser</string>
118119
<string name="content_description_date_range_icon">Select filter date range</string>
119120
<string name="content_description_settings_icon">Settings</string>
121+
<!--endregion-->
120122

121-
<!-- Biometric prompt -->
123+
<!-- region Biometric prompt -->
122124
<string name="biometric_prompt_title">Biometric authentication</string>
123125
<string name="biometric_prompt_subtitle">Authenticate using your biometrics</string>
124126
<string name="biometric_login_title">Welcome back</string>
125127
<string name="biometric_login_biometrics_enabled_subtitle">Use your biometrics to access the EUDI Wallet.</string>
126128
<string name="biometric_login_biometrics_not_enabled_subtitle">To access the EUDI Wallet you need to provide your PIN.</string>
129+
<!--endregion-->
127130

128-
<!-- Biometrics -->
131+
<!-- region Biometrics -->
129132
<string name="biometric_no_hardware">Your device does not support biometric authentication</string>
130133
<string name="biometric_unknown_error">Something went wrong initializing biometric authentication. Please try again</string>
131134
<string name="biometric_default_mode_text_above_pin_field">PIN</string>">
135+
<!--endregion-->
132136

133-
<!-- Document Success -->
137+
<!-- region Document Success -->
134138
<string name="document_success_header_description">You successfully shared the following information with</string>
135139
<string name="document_success_header_description_when_error">You successfully shared the information with</string>
136140
<string name="document_success_relying_party_default_name">@string/generic_default_relying_party_name</string>
137141
<string name="document_success_collapsed_supporting_text">@string/generic_view_details</string>
138142
<string name="document_success_sticky_button_text">@string/generic_close</string>
143+
<!--endregion-->
139144

140-
<!-- Quick Pin -->
145+
<!-- region Quick Pin -->
141146
<string name="quick_pin_invalid_error">Invalid quick pin</string>
142147
<string name="quick_pin_numerical_rule_invalid_error_message">Only numerical values are allowed</string>
143148
<string name="quick_pin_non_match">Pins do not match</string>
@@ -162,8 +167,9 @@
162167
<string name="quick_pin_bottom_sheet_cancel_subtitle">Cancel will redirect you back to the home without changing the quick pin</string>
163168
<string name="quick_pin_bottom_sheet_cancel_primary_button_text">@string/generic_continue_capitalized</string>
164169
<string name="quick_pin_bottom_sheet_cancel_secondary_button_text">@string/generic_cancel_capitalized</string>
170+
<!--endregion-->
165171

166-
<!-- Request Screen -->
172+
<!-- region Request Screen -->
167173
<string name="request_header_description">The following transaction requires your permission and authentication.</string>
168174
<string name="request_header_main_text">DATA SHARING REQUEST</string>
169175
<string name="request_relying_party_default_name">@string/generic_default_relying_party_name</string>
@@ -179,13 +185,15 @@
179185
<string name="request_gender_female">Female</string>
180186
<string name="request_gender_not_known">Not known</string>
181187
<string name="request_gender_not_applicable">Not applicable</string>
188+
<!--endregion-->
182189

183-
<!-- Loading Screen -->
190+
<!-- region Loading Screen -->
184191
<string name="loading_header_description">Please wait…</string>
185192
<string name="loading_biometry_biometrics_enabled_description">Use your biometrics to approve the transaction.</string>
186193
<string name="loading_biometry_biometrics_not_enabled_description">To approve the transaction you need to verify your identity.</string>
194+
<!--endregion-->
187195

188-
<!-- Dashboard -->
196+
<!-- region Dashboard -->
189197
<string name="dashboard_document_has_not_expired">Valid until:\ %1$s</string>
190198
<string name="dashboard_document_has_expired">Expired</string>
191199
<string name="dashboard_document_deferred_pending">Pending</string>
@@ -208,23 +216,26 @@
208216

209217
<string name="dashboard_bottom_sheet_revoked_document_dialog_title">Revoked documents</string>
210218
<string name="dashboard_bottom_sheet_revoked_document_dialog_subtitle">The following documents have been revoked.</string>
219+
<!--endregion-->
211220

212-
<!-- Dashboard Side Menu -->
221+
<!-- region Dashboard Side Menu -->
213222
<string name="dashboard_side_menu_title">My EU Wallet</string>
214223
<string name="dashboard_side_menu_option_change_pin">Change PIN</string>
215224
<string name="dashboard_side_menu_option_change_pin_id">changePinId</string>
216225
<string name="dashboard_side_menu_option_settings">Settings</string>
217226
<string name="dashboard_side_menu_option_settings_id">settingsId</string>
227+
<!--endregion-->
218228

219-
<!-- Settings Screen -->
229+
<!-- region Settings Screen -->
220230
<string name="settings_screen_title">Settings</string>
221231
<string name="settings_screen_option_retrieve_logs">Retrieve logs</string>
222232
<string name="settings_screen_option_retrieve_logs_id">retrieveLogsId</string>
223233
<string name="settings_screen_option_changelog">Changelog</string>
224234
<string name="settings_screen_option_changelog_id">changelogId</string>
225235
<string name="settings_intent_chooser_logs_share_title">Share logs</string>
236+
<!--endregion-->
226237

227-
<!-- Home Screen -->
238+
<!-- region Home Screen -->
228239
<string name="home_screen_title">Home</string>
229240
<string name="home_screen_welcome">Welcome back</string>
230241
<string name="home_screen_welcome_user_message">Welcome back, %1$s</string>
@@ -241,14 +252,16 @@
241252
<string name="home_screen_sign_document_description">Sign a document digitally by choosing a file from your device or by scanning a QR code.</string>
242253
<string name="home_screen_sign_document_option_from_device">From device</string>
243254
<string name="home_screen_sign_document_option_scan_qr">Scan QR</string>
255+
<!--endregion-->
244256

245-
<!-- Home Screen Learn More Popups content -->
257+
<!-- region Home Screen Learn More Popups content -->
246258
<string name="home_screen_authenticate_learn_more_inner_title">Sign documents safely</string>
247259
<string name="home_screen_authenticate_learn_more_description">Sign documents with just your wallet. Providing a legally binding e-signature will be faster and easier than ever, enabling you to conduct business whenever you are.</string>
248260
<string name="home_screen_sign_learn_more_inner_title">Access online services</string>
249261
<string name="home_screen_sign_learn_more_description">Identify yourself to a wide range of public and private online services while protecting your privacy. Prove who you are with just a few taps - no need to manage countless passwords.</string>
262+
<!--endregion-->
250263

251-
<!-- Documents Screen -->
264+
<!-- region Documents Screen -->
252265
<string name="documents_screen_title">Documents</string>
253266
<string name="documents_screen_search_label">Search Documents</string>
254267
<string name="documents_screen_search_no_results">No documents match your search. Try changing your search query or filters.</string>
@@ -280,8 +293,9 @@
280293
<string name="documents_screen_filters_apply">@string/generic_filters_apply</string>
281294
<string name="documents_screen_filters_reset">@string/generic_filters_reset</string>
282295
<string name="documents_screen_filters_unknown_issuer">Unknown</string>
296+
<!--endregion-->
283297

284-
<!-- Transactions Screen -->
298+
<!-- region Transactions Screen -->
285299
<string name="transactions_screen_title">Transactions</string>
286300
<string name="transactions_screen_search_label">Search Transactions</string>
287301
<string name="transactions_screen_search_no_results_id">noTransactionsId</string>
@@ -292,8 +306,9 @@
292306
<item quantity="other">%d minutes ago</item>
293307
</plurals>
294308
<string name="transactions_screen_text_field_date_pattern">dd/mm/yyyy</string>
309+
<!--endregion-->
295310

296-
<!-- Transactions Screen, Filter labels-->
311+
<!-- region Transactions Screen, Filter labels-->
297312
<string name="transactions_screen_filters_title">@string/generic_filters_title</string>
298313
<string name="transactions_screen_filters_sort_by">@string/generic_filters_sort_by</string>
299314
<string name="transactions_screen_filters_ascending">@string/generic_filters_ascending</string>
@@ -313,20 +328,23 @@
313328
<string name="transactions_filter_item_no_relying_party_transactions">No Relying Party</string>
314329
<string name="transactions_screen_filters_apply">@string/generic_filters_apply</string>
315330
<string name="transactions_screen_filters_reset">@string/generic_filters_reset</string>
331+
<!--endregion-->
316332

317-
<!-- Document Sign -->
333+
<!-- region Document Sign -->
318334
<string name="document_sign_title">Sign Document</string>
319335
<string name="document_sign_subtitle">Select a document from your device to sign electronically.</string>
320336
<string name="document_sign_select_document">Select document</string>
321337
<string name="document_sign_select_document_button_id">documentSignButtonId</string>
338+
<!--endregion-->
322339

323-
<!-- Qr Scan -->
340+
<!-- region Qr Scan -->
324341
<string name="qr_scan_permission_not_granted">Camera permission not provided\nOpen App Settings</string>
325342
<string name="qr_scan_informative_text_presentation_flow">Having trouble scanning the QR Code?\nPlease try an alternative way</string>
326343
<string name="qr_scan_informative_text_issuance_flow">Having trouble scanning the QR Code?\nPlease try an alternative way</string>
327344
<string name="qr_scan_informative_text_signature_flow">Having trouble scanning the QR Code?\nPlease try an alternative way</string>
345+
<!--endregion-->
328346

329-
<!-- Document Details -->
347+
<!-- region Document Details -->
330348
<string name="document_details_revoked_document_message">This document has been revoked by the issuer. Contact the issuing service for more information.</string>
331349
<string name="document_details_boolean_item_true_readable_value">yes</string>
332350
<string name="document_details_boolean_item_false_readable_value">no</string>
@@ -353,8 +371,9 @@
353371
<string name="document_details_bottom_sheet_badge_title">Trusted Relying Party</string>
354372
<string name="document_details_bottom_sheet_badge_subtitle">A Relying Party is considered trusted when it meets
355373
predefined criteria for security, data protection, compliance, and responsible data handling.</string>
374+
<!--endregion-->
356375

357-
<!-- Transaction Details -->
376+
<!-- region Transaction Details -->
358377
<string name="transaction_details_screen_title">Transaction information</string>
359378
<string name="transaction_details_screen_card_date_label">Date</string>
360379
<string name="transaction_details_request_deletion_message">You can request to stop processing personal data linked to this transaction. This may affect your access to services.</string>
@@ -366,22 +385,26 @@
366385
<string name="transaction_details_data_signed_section_title">DATA SIGNED</string>
367386
<string name="transaction_details_data_signed_prefix_id">transactionDetailsDataSignedId</string>
368387
<string name="transaction_details_collapsed_supporting_text">@string/generic_view_details</string>
388+
<!--endregion-->
369389

370-
<!-- Proximity QR -->
390+
<!-- region Proximity QR -->
371391
<string name="proximity_qr_title">Present document in person</string>
372392
<string name="proximity_qr_subtitle">Show this QR code to a Relying Party to present a digital document.</string>
373393
<string name="proximity_qr_use_nfc">Or share via NFC</string>
374394
<string name="proximity_qr_hold_near_reader">Hold your phone near reader to scan.</string>
395+
<!--endregion-->
375396

376-
<!-- Presentation Qr Scan -->
397+
<!-- region Presentation Qr Scan -->
377398
<string name="presentation_qr_scan_title">Present document online</string>
378399
<string name="presentation_qr_scan_subtitle">Scan a QR code provided from a Relying Party to present a digital document.</string>
400+
<!--endregion-->
379401

380-
<!-- Signature Qr Scan -->
402+
<!-- region Signature Qr Scan -->
381403
<string name="signature_qr_scan_title">Sign document</string>
382404
<string name="signature_qr_scan_subtitle">Scan a QR code to electronically sign a document.</string>
405+
<!--endregion-->
383406

384-
<!-- Issuance Add Document Screen -->
407+
<!-- region Issuance Add Document Screen -->
385408
<string name="issuance_add_document_title">Add document from list</string>
386409
<string name="issuance_add_document_subtitle">Choose a digital document from the list below to add to your wallet.</string>
387410
<string name="issuance_add_document_no_options">No available documents</string>
@@ -390,17 +413,20 @@
390413
<string name="issuance_add_document_deferred_success_text">@string/generic_deferred_success_text</string>
391414
<string name="issuance_add_document_deferred_success_description">Your document has been requested. You will be notified when it has been issued to your wallet.</string>
392415
<string name="issuance_add_document_deferred_success_primary_button_text">@string/generic_ok</string>
416+
<!--endregion-->
393417

394-
<!-- Issuance Success Screen -->
418+
<!-- region Issuance Success Screen -->
395419
<string name="issuance_success_header_description">You have successfully added the following to your wallet</string>
396420
<string name="issuance_success_header_description_when_error">You have successfully added the document(s) to your wallet</string>
397421
<string name="issuance_success_header_issuer_default_name">@string/generic_default_issuer_name</string>
422+
<!--endregion-->
398423

399-
<!-- Issuance Qr Scan -->
424+
<!-- region Issuance Qr Scan -->
400425
<string name="issuance_qr_scan_title">Add document from QR</string>
401426
<string name="issuance_qr_scan_subtitle">Scan a QR code provided from an issuer to add a digital document to your wallet.</string>
427+
<!--endregion-->
402428

403-
<!-- Issuance Document Offer -->
429+
<!-- region Issuance Document Offer -->
404430
<string name="issuance_document_offer_primary_button_text_add">Add</string>
405431
<string name="issuance_document_offer_deferred_success_text">@string/generic_deferred_success_text</string>
406432
<string name="issuance_document_offer_deferred_success_description">Your documents from %1$s have been requested. You will be notified when they have been issued to your wallet.</string>
@@ -413,15 +439,18 @@
413439
<string name="issuance_document_offer_header_main_text">ISSUANCE REQUEST</string>
414440
<string name="issuance_document_offer_relying_party_default_name">@string/generic_default_issuer_name</string>
415441
<string name="issuance_document_offer_relying_party_description">wants to add the following</string>
442+
<!--endregion-->
416443

417-
<!-- Issuance Document Offer Code -->
444+
<!-- region Issuance Document Offer Code -->
418445
<string name="issuance_code_title">%1$s requires verification</string>
419446
<string name="issuance_code_caption">Type the %1$d-digit transaction code you received.</string>
447+
<!--endregion-->
420448

421-
<!-- Issuance Document Errors -->
449+
<!-- region Issuance Document Errors -->
422450
<string name="issuance_generic_error">Something went wrong issuing your document(s)</string>
451+
<!--endregion-->
423452

424-
<!-- Document Categories -->
453+
<!-- region Document Categories -->
425454
<string name="document_category_government">GOVERNMENT</string>
426455
<string name="document_category_travel">TRAVEL</string>
427456
<string name="document_category_finance">FINANCE</string>
@@ -430,9 +459,12 @@
430459
<string name="document_category_social_security">SOCIAL SECURITY</string>
431460
<string name="document_category_retail">RETAIL</string>
432461
<string name="document_category_other">OTHER</string>
462+
<!--endregion-->
433463

434-
<!-- Transaction Categories -->
464+
<!-- region Transaction Categories -->
435465
<string name="transaction_category_today">TODAY</string>">
436466
<string name="transaction_category_this_week">THIS WEEK</string>">
437467
<string name="transaction_category_month_year">MONTH</string>">
468+
<!--endregion-->
469+
438470
</resources>

0 commit comments

Comments
 (0)