Skip to content

Commit

Permalink
Merge branch 'master' into release-7.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Wootten authored Jul 11, 2023
2 parents e7eccdf + 380240e commit a9c78dc
Show file tree
Hide file tree
Showing 608 changed files with 28,423 additions and 25,244 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install Dependencies
run: |
apt update
apt install -y exuberant-ctags libeditorconfig-dev libgail-3-dev libgee-0.8-dev libgit2-glib-1.0-dev libgranite-dev libgtk-3-dev libgtksourceview-4-dev libgtkspell3-3-dev libhandy-1-dev libpeas-dev libsoup2.4-dev libvala-dev libvte-2.91-dev meson valac
apt install -y exuberant-ctags libeditorconfig-dev libgail-3-dev libgee-0.8-dev libgit2-glib-1.0-dev libgranite-dev libgtk-3-dev libgtksourceview-4-dev libgtkspell3-3-dev libhandy-1-dev libpeas-dev libsoup2.4-dev libvala-dev libvte-2.91-dev meson valac polkitd libpolkit-gobject-1-dev
- name: Build
env:
DESTDIR: out
Expand Down
5 changes: 0 additions & 5 deletions data/io.elementary.code.1
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ Open a new window\.
Show a help message and exit\.
.
.TP
\fB\-s\fR, \fB\-\-set=\fR\fINAME\fR
Load Code with an alternative set of core plugins\. Code will be rebranded to this name\. This is useful for repurposing Code into IDEs using plugin sets\.
The name will be looked up in the plugin directory, typically /usr/lib/io.elementary.code/plugins/, and all plugins from the sub-directory \fINAME\fR will be loaded into Code as core plugins\.
.
.TP
\fB\-v\fR, \fB\-\-version\fR
Print version info and exit\.
.
Expand Down
1 change: 1 addition & 0 deletions data/io.elementary.code.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
<description>Whether Code should use auto indentation</description>
</key>
<key name="indent-width" type="i">
<range min="2" max="16"/>
<default>4</default>
<summary>Tab Size</summary>
<description>Specifies the number of spaces that should be displayed instead of Tab characters.</description>
Expand Down
13 changes: 10 additions & 3 deletions plugins/editorconfig/editorconfig.vala
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ public class Scratch.Plugins.EditorConfigPlugin: Peas.ExtensionBase, Peas.Activa
});

plugins.hook_document.connect ((d) => {
format_bar.tab_set_by_editor_config = false;
// Ensure use global settings by default
format_bar.tab_style_set_by_editor_config = false;
format_bar.tab_width_set_by_editor_config = false;
format_bar.set_document (d);

Scratch.Widgets.SourceView view = d.source_view;
File file = d.file;

Expand All @@ -52,13 +56,13 @@ public class Scratch.Plugins.EditorConfigPlugin: Peas.ExtensionBase, Peas.Activa
/* These are all properties (https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties) */
switch (name) {
case "indent_style":
format_bar.tab_set_by_editor_config = true;
format_bar.tab_style_set_by_editor_config = true;
var use_spaces = (val != "tab");
format_bar.set_insert_spaces_instead_of_tabs (use_spaces);
break;
case "indent_size":
case "tab_width":
format_bar.tab_set_by_editor_config = true;
format_bar.tab_width_set_by_editor_config = true;
var indent_width = (int.parse (val)).clamp (2, 16);
format_bar.set_tab_width (indent_width);
break;
Expand All @@ -73,6 +77,9 @@ public class Scratch.Plugins.EditorConfigPlugin: Peas.ExtensionBase, Peas.Activa
case "max_line_length":
view.right_margin_position = int.parse (val);
break;
default:
warning ("unrecognised name/value %s/%s", name, val);
break;
}
}
});
Expand Down
136 changes: 74 additions & 62 deletions po/aa.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-04-27 10:05+0000\n"
"POT-Creation-Date: 2023-07-09 17:18+0000\n"
"PO-Revision-Date: 2015-12-18 20:01+0000\n"
"Last-Translator: Launchpad Translations Administrators <Unknown>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -13,27 +13,19 @@ msgstr ""
"X-Launchpad-Export-Date: 2017-05-03 06:00+0000\n"
"X-Generator: Launchpad (build 18366)\n"

#: src/Application.vala:39
#: src/Application.vala:37
msgid "New Tab"
msgstr ""

#: src/Application.vala:40 src/FolderManager/FileItem.vala:31
#: src/Application.vala:38 src/FolderManager/FileItem.vala:31
msgid "New Window"
msgstr ""

#: src/Application.vala:41
#: src/Application.vala:39
msgid "Print version info and exit"
msgstr ""

#: src/Application.vala:42
msgid "Set of plugins"
msgstr ""

#: src/Application.vala:42
msgid "plugin"
msgstr ""

#: src/Application.vala:43
#: src/Application.vala:40
msgid "[FILE…]"
msgstr ""

Expand Down Expand Up @@ -77,11 +69,11 @@ msgstr ""
msgid "%s - %s"
msgstr ""

#: src/MainWindow.vala:832 src/Services/Document.vala:583
#: src/MainWindow.vala:832 src/Services/Document.vala:596
msgid "All files"
msgstr ""

#: src/MainWindow.vala:836 src/Services/Document.vala:587
#: src/MainWindow.vala:836 src/Services/Document.vala:600
msgid "Text files"
msgstr ""

Expand All @@ -94,8 +86,8 @@ msgid "Open"
msgstr ""

#: src/MainWindow.vala:844 src/Dialogs/GlobalSearchDialog.vala:109
#: src/Dialogs/NewBranchDialog.vala:42 src/Services/Document.vala:439
#: src/Services/Document.vala:595 plugins/pastebin/pastebin_dialog.vala:327
#: src/Dialogs/NewBranchDialog.vala:42 src/Services/Document.vala:442
#: src/Services/Document.vala:608 plugins/pastebin/pastebin_dialog.vala:327
#: plugins/pastebin/pastebin_dialog.vala:378
msgid "Cancel"
msgstr ""
Expand Down Expand Up @@ -250,23 +242,23 @@ msgstr ""
msgid "Restore Anyway"
msgstr ""

#: src/FolderManager/FileItem.vala:52 src/FolderManager/FolderItem.vala:126
#: src/FolderManager/FileItem.vala:52 src/FolderManager/FolderItem.vala:148
msgid "Other Application…"
msgstr ""

#: src/FolderManager/FileItem.vala:113 src/FolderManager/FolderItem.vala:166
#: src/FolderManager/FileItem.vala:113 src/FolderManager/FolderItem.vala:188
msgid "Open In"
msgstr ""

#: src/FolderManager/FileItem.vala:116 src/FolderManager/FolderItem.vala:94
#: src/FolderManager/FileItem.vala:116 src/FolderManager/FolderItem.vala:116
msgid "Other Actions"
msgstr ""

#: src/FolderManager/FileItem.vala:119 src/FolderManager/FolderItem.vala:97
#: src/FolderManager/FileItem.vala:119 src/FolderManager/FolderItem.vala:119
msgid "Rename"
msgstr ""

#: src/FolderManager/FileItem.vala:125 src/FolderManager/FolderItem.vala:103
#: src/FolderManager/FileItem.vala:125 src/FolderManager/FolderItem.vala:125
#: src/FolderManager/ProjectFolderItem.vala:163
msgid "Move to Trash"
msgstr ""
Expand All @@ -275,31 +267,31 @@ msgstr ""
msgid "Folders"
msgstr ""

#: src/FolderManager/FolderItem.vala:106
#: src/FolderManager/FolderItem.vala:128
msgid "Find in Folder…"
msgstr ""

#: src/FolderManager/FolderItem.vala:173
#: src/FolderManager/FolderItem.vala:195
msgid "Folder"
msgstr ""

#: src/FolderManager/FolderItem.vala:176
#: src/FolderManager/FolderItem.vala:198
msgid "Empty File"
msgstr ""

#. scan all children
#. No need to show status when children shown
#: src/FolderManager/FolderItem.vala:183
#: src/FolderManager/FolderItem.vala:205
#: src/FolderManager/ProjectFolderItem.vala:251
#: src/FolderManager/ProjectFolderItem.vala:257
msgid "New"
msgstr ""

#: src/FolderManager/FolderItem.vala:366
#: src/FolderManager/FolderItem.vala:360
msgid "untitled folder"
msgstr ""

#: src/FolderManager/FolderItem.vala:366
#: src/FolderManager/FolderItem.vala:360
msgid "new file"
msgstr ""

Expand Down Expand Up @@ -353,131 +345,151 @@ msgstr ""
msgid "Branch"
msgstr ""

#: src/Services/Document.vala:305
#: src/Services/Document.vala:318
#, c-format
msgid "%s Is Not a Text File"
msgstr ""

#: src/Services/Document.vala:306
#: src/Services/Document.vala:319
msgid "Code will not load this type of file."
msgstr ""

#: src/Services/Document.vala:308
#: src/Services/Document.vala:321
msgid "Load Anyway"
msgstr ""

#: src/Services/Document.vala:329
#: src/Services/Document.vala:342
#, c-format
msgid "Loading File “%s” Is Taking a Long Time"
msgstr ""

#: src/Services/Document.vala:330
#: src/Services/Document.vala:343
msgid "Please wait while Code is loading the file."
msgstr ""

#: src/Services/Document.vala:332
#: src/Services/Document.vala:345
msgid "Cancel Loading"
msgstr ""

#: src/Services/Document.vala:429
#: src/Services/Document.vala:432
#, c-format
msgid "Save changes to “%s” before closing?"
msgstr ""

#: src/Services/Document.vala:430
#: src/Services/Document.vala:433
msgid "If you don't save, changes will be permanently lost."
msgstr ""

#: src/Services/Document.vala:436
#: src/Services/Document.vala:439
msgid "Close Without Saving"
msgstr ""

#: src/Services/Document.vala:440 src/Services/Document.vala:594
#: src/Services/Document.vala:443 src/Services/Document.vala:607
msgid "Save"
msgstr ""

#: src/Services/Document.vala:552
#: src/Services/Document.vala:565
#, c-format
msgid "Saving to “%s” failed."
msgstr ""

#: src/Services/Document.vala:591
#: src/Services/Document.vala:604
msgid "Save File"
msgstr ""

#: src/Services/Document.vala:675 src/Services/Document.vala:693
#: src/Services/Document.vala:691 src/Services/Document.vala:709
msgid "New Document"
msgstr ""

#. No path for a new document
#: src/Services/Document.vala:695
#: src/Services/Document.vala:711
#, c-format
msgid "Cannot save this document to %s"
msgstr ""

#. Show an error view which says "Hey, I cannot read that file!"
#: src/Services/Document.vala:820
#: src/Services/Document.vala:777
#, c-format
msgid "Cannot read text in file “%s”"
msgstr ""

#: src/Services/Document.vala:823
#: src/Services/Document.vala:780
msgid "You may not have permission to read the file."
msgstr ""

#: src/Services/Document.vala:825
#: src/Services/Document.vala:782
msgid "The file may be corrupt or may not be a text file"
msgstr ""

#. Lack of read permission results in empty content string. Do not give option to open
#. in new document in that case.
#: src/Services/Document.vala:831
#: src/Services/Document.vala:788
msgid "Show Anyway"
msgstr ""

#: src/Services/Document.vala:861
#: src/Services/Document.vala:819
#, c-format
msgid "The location containing the file “%s” was unmounted."
msgid ""
"The location containing the file “%s” was unmounted and there are unsaved "
"changes."
msgstr ""

#: src/Services/Document.vala:863
#: src/Services/Document.vala:821
#, c-format
msgid "File “%s” was deleted."
msgid "File “%s” was deleted and there are unsaved changes."
msgstr ""

#. Check external changes after loading
#. The file has become unwritable while changes are pending
#: src/Services/Document.vala:871
#: src/Services/Document.vala:835
#, c-format
msgid "File “%s” does not have write permission."
msgstr ""

#: src/Services/Document.vala:903
#: src/Services/Document.vala:881
#, c-format
msgid "File “%s” was modified by an external application."
msgid "File “%s” was modified by an external application"
msgstr ""

#: src/Services/Document.vala:909
msgid "Reload"
#: src/Services/Document.vala:886
msgid ""
"There are also unsaved changes. Reloading the document will overwrite the "
"unsaved changes."
msgstr ""

#: src/Services/Document.vala:915
msgid "Continue"
#: src/Services/Document.vala:890
msgid "The document changed externally since you last saved it."
msgstr ""

#: src/Services/Document.vala:936
#: src/Services/Document.vala:908
#, c-format
msgid "“%s” can't be saved here. Save a duplicate somewhere else?"
msgstr ""

#: src/Services/Document.vala:945
#: src/Services/Document.vala:917
msgid "Ignore"
msgstr ""

#: src/Services/Document.vala:947
#: src/Services/Document.vala:919
msgid "Save Duplicate…"
msgstr ""

#: src/Services/Document.vala:968
msgid "Continue"
msgstr ""

#: src/Services/Document.vala:970
msgid "Reload"
msgstr ""

#: src/Services/Document.vala:973
msgid "Overwrite"
msgstr ""

#: src/Services/Document.vala:976
msgid "Save Document elsewhere"
msgstr ""

#: src/Services/TemplateManager.vala:198
msgid "Templates"
msgstr ""
Expand Down Expand Up @@ -696,11 +708,11 @@ msgstr ""
msgid "no results"
msgstr ""

#: src/Widgets/SourceView.vala:519
#: src/Widgets/SourceView.vala:518
msgid "Sort Selected Lines"
msgstr ""

#: src/Widgets/SourceView.vala:532
#: src/Widgets/SourceView.vala:531
msgid "Toggle Comment"
msgstr ""

Expand Down
Loading

0 comments on commit a9c78dc

Please sign in to comment.