From 896e7f392e65c8becd2c7127781eea9d4ebed6e8 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 5 Dec 2023 13:33:23 -0300 Subject: [PATCH] Change en.ini multiline format Instead of using the simpleini format (which is not quite common/standard): key = << Save" menu for more information. -END +cannot_modify_readonly_sprite = Cannot modify a read-only sprite.\nUse "File > Save" menu for more information. [alerts] applying_filter = FX< Save As" menu option in that case. -||&OK -END +cannot_delete_used_tileset = Error\n< Save As" menu option in that case.\n||&OK cannot_open_file = Problem< {2}% -<< UI Scaling: {3}% -> {4}% -< {2}%\n<< UI Scaling: {3}% -> {4}%\n< Save As" option to save the file with other name (you will lose information stored in the original file anyway) -END +message = This file was originally created with a newer version of Aseprite which contains information we cannot fully read.\n\nIt's marked as read-only to avoid losing that information when you try to save/overwrite it.\n\nTo solve this situation you can:\n- Update Aseprite to the latest version and try to load the file again (recommended), or\n- Use the "File > Save As" option to save the file with other name (you will lose information stored in the original file anyway) incompatibilities = Incompatibilities: update_link = Update Aseprite @@ -1421,16 +1197,9 @@ grid_height = Grid Height: name = Name: default_name = Tileset base_index = Base Index: -base_tooltip = << Open Recent > Reopen Closed File" menu option. -END +keep_closed_sprite_on_memory_tooltip = When you close a sprite, it will be kept on memory just in case if you\nhave closed the sprite by mistake, so you can "undo" the close action\nusing "File > Open Recent > Reopen Closed File" menu option. default_extension_for = Default extension for: save_default_extension = File > Save: export_image_default_extension = File > Export (one image): @@ -1590,12 +1327,7 @@ show_scrollbars_tooltip = Show scroll-bars in all sprite editors. auto_scroll = Auto-scroll on editor edges auto_fit = Auto-fit on screen when a sprite is opened straight_line_preview = Preview straight line immediately on Pencil tool -straight_line_preview_tooltip = << Delete" command -keep_selection_after_clear_tooltip = << Show > Selection Edges" option will be enabled -each time we modify the selection. Uncheck this in case that you want -to keep selection edges hidden when "View > Show > Selection Edges" -option is disabled, e.g. to avoid visual noise or performance issues. -END +auto_show_selection_edges_tooltip = When checked, the "View > Show > Selection Edges" option will be enabled\neach time we modify the selection. Uncheck this in case that you want\nto keep selection edges hidden when "View > Show > Selection Edges"\noption is disabled, e.g. to avoid visual noise or performance issues. move_edges = Allow moving selection edges -move_edges_tooltip = << @@ -154,10 +155,15 @@ void Strings::loadStringsFromFile(const std::string& fn) cfg.getAllKeys(section.c_str(), keys); std::string textId = section; + std::string value; textId.push_back('.'); for (auto key : keys) { textId.append(key); - m_strings[textId] = cfg.getValue(section.c_str(), key.c_str(), ""); + + value = cfg.getValue(section.c_str(), key.c_str(), ""); + base::replace_string(value, "\\n", "\n"); + base::replace_string(value, "\\ ", " "); // Mainly used for leading blanks + m_strings[textId] = value; //TRACE("I18N: Reading string %s -> %s\n", textId.c_str(), m_strings[textId].c_str());