-
Notifications
You must be signed in to change notification settings - Fork 47
Rephrase usage of Palette in user-facing strings #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -485,7 +485,7 @@ fun GraphActionMenu( | |
|
|
||
| Box { | ||
| TextButton(onClick = { showPaletteMenu = true }) { | ||
| Text(stringResource(R.string.bg_my_palette)) | ||
| Text(stringResource(R.string.bg_my_brushes)) | ||
| } | ||
|
|
||
| PaletteMenu( | ||
|
|
@@ -509,7 +509,7 @@ fun GraphActionMenu( | |
| shape = RoundedCornerShape(16.dp), | ||
| modifier = Modifier.height(40.dp), | ||
| ) { | ||
| Text(stringResource(R.string.bg_save_to_palette)) | ||
| Text(stringResource(R.string.bg_save)) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -105,13 +105,13 @@ | |
| <string name="brush_designer_controls_placeholder">Editing controls coming in the next update. Use the preview canvas to draw test strokes.</string> | ||
| <string name="brush_designer_close">Close</string> | ||
| <string name="brush_designer_stock_brushes">Stock Brushes</string> | ||
| <string name="brush_designer_my_palette">My Palette</string> | ||
| <string name="brush_designer_my_brushes">My Brushes</string> | ||
| <string name="brush_designer_no_saved_brushes">No saved brushes yet</string> | ||
| <string name="brush_designer_save_to_palette">Save to Cahier Palette</string> | ||
| <string name="brush_designer_save">Save</string> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The string resource |
||
| <string name="brush_designer_import">Import</string> | ||
| <string name="brush_designer_export">Export</string> | ||
| <string name="brush_designer_more_options">More options</string> | ||
| <string name="brush_designer_save_dialog_title">Save to Palette</string> | ||
| <string name="brush_designer_save_dialog_title">Save to Cahier</string> | ||
| <string name="brush_designer_save_dialog_info">• This brush will appear in the main Cahier toolbox.\n• Large textures are stored in RAM. Avoid saving many texture-heavy brushes to prevent performance lag or memory issues.</string> | ||
| <string name="brush_designer_brush_name">Brush Name</string> | ||
| <string name="brush_designer_tab_tip_shape">Tip Shape</string> | ||
|
|
@@ -278,7 +278,8 @@ | |
| <!-- Brush Graph --> | ||
| <string name="bg_name_texture">Name Texture</string> | ||
| <string name="bg_texture_id">Texture ID</string> | ||
| <string name="bg_save_to_palette">Save to Palette</string> | ||
| <string name="bg_save">Save</string> | ||
| <string name="bg_save_to_cahier">Save to Cahier</string> | ||
|
Comment on lines
+281
to
+282
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is redundancy between the
While module-specific prefixes can be useful, for strings that are identical and used across multiple developer tools, it is more maintainable to define a single shared resource (e.g., |
||
| <string name="bg_brush_name">Brush Name</string> | ||
| <string name="bg_clear_graph">Clear Graph</string> | ||
| <string name="bg_clear_graph_confirmation">Are you sure you want to clear the entire brush graph? This action cannot be undone.</string> | ||
|
|
@@ -307,7 +308,7 @@ | |
| <string name="bg_behavior">Behavior</string> | ||
| <string name="bg_color_function">Color Function</string> | ||
| <string name="bg_texture_layer">Texture Layer</string> | ||
| <string name="bg_my_palette">My Palette</string> | ||
| <string name="bg_my_brushes">My Brushes</string> | ||
| <string name="bg_delete_edge">Delete Edge</string> | ||
| <string name="bg_delete_edge_confirmation">Are you sure you want to delete this edge?</string> | ||
| <string name="bg_add_node_between">Add Node Between</string> | ||
|
|
@@ -467,8 +468,8 @@ | |
| <string name="bg_err_reorganization_failed">Reorganization failed</string> | ||
| <string name="bg_err_load_brush_failed">Failed to load brush</string> | ||
| <string name="bg_err_cannot_delete_family_node">Cannot delete Family node</string> | ||
| <string name="bg_err_save_palette">Failed to save brush to palette: %1$s</string> | ||
| <string name="bg_err_load_palette">Failed to load brush from palette: %1$s</string> | ||
| <string name="bg_err_save">Failed to save brush to Cahier: %1$s</string> | ||
| <string name="bg_err_load">Failed to load brush from Cahier: %1$s</string> | ||
| <string name="bg_err_behavior_cannot_accept">Behavior node %1$s cannot accept input from %2$s</string> | ||
| <string name="bg_err_behavior_cannot_accept_structural">Behavior node %1$s cannot accept input from structural node %2$s</string> | ||
| <string name="bg_err_coat_only_accepts_tip">Coat can only accept input from Tip at the tip port</string> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using the generic
R.string.saveinstead of the module-specificR.string.brush_designer_saveto avoid redundancy, as they both resolve to the same value and the generic one is already used elsewhere in this file (e.g., line 418).