Skip to content

Commit

Permalink
Rename instances of “Scratch” to “Code” (elementary#713)
Browse files Browse the repository at this point in the history
* Update some Scratch refs in metadata

* Update some Scratch refs

* Update website urls in plugins

* Update project name in translation file headers

* Renaming of project name in po files

* Renaming of project name in more po files strings

* Fix project name in po files: - Code* -

* Renaming of project name in more po files strings

* update app name strings in metadata file

* Update app name in plugin comments

* Update app name in Vala comments

* Fix app name in vala code comments

* Renaming of project name in more po files strings

* Change app name in some PO translations to Code

* Revert PO file changes

* Update project name in Vala source comments

* Rename Zeitgeist datasource name using new project name

* Reverting change in keywords list

* Fix double space in plugin descriptions

* Update translation key to use new project name
  • Loading branch information
megatux authored and cassidyjames committed Oct 4, 2019
1 parent 388b5b3 commit 1f7b651
Show file tree
Hide file tree
Showing 16 changed files with 44 additions and 44 deletions.
6 changes: 3 additions & 3 deletions data/io.elementary.code.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@
</content_rating>
<developer_name>elementary LLC.</developer_name>
<url type="homepage">http://elementary.io/</url>
<url type="bugtracker">https://github.com/elementary/scratch/issues</url>
<url type="bugtracker">https://github.com/elementary/code/issues</url>
<url type="donation">https://elementary.io/get-involved#funding</url>
<url type="help">https://elementaryos.stackexchange.com/questions/tagged/scratch</url>
<url type="translate">https://l10n.elementary.io/projects/scratch</url>
<url type="help">https://elementaryos.stackexchange.com/questions/tagged/code</url>
<url type="translate">https://l10n.elementary.io/projects/code</url>
<update_contact>contact_AT_elementary.io</update_contact>
<screenshots>
<screenshot type="default">
Expand Down
20 changes: 10 additions & 10 deletions data/io.elementary.code.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
</key>
<key name="opened-files-view1" type="as">
<default>[]</default>
<summary>Files opened in the previously session of Scratch on the first view</summary>
<description>It is used to open the files opened in the last Scratch session</description>
<summary>Files opened in the previously session of Code on the first view</summary>
<description>It is used to open the files opened in the last Code session</description>
</key>
<key name="opened-files-view2" type="as">
<default>[]</default>
<summary>Files opened in the previously session of Scratch on the second view</summary>
<description>It is used to open the files opened in the last Scratch session</description>
<summary>Files opened in the previously session of Code on the second view</summary>
<description>It is used to open the files opened in the last Code session</description>
</key>
<key name="autosave" type="b">
<default>true</default>
Expand All @@ -87,7 +87,7 @@
<key name="highlight-matching-brackets" type="b">
<default>true</default>
<summary>Highlight Matching Brackets</summary>
<description>Whether Scratch should highlight matching brackets.</description>
<description>Whether Code should highlight matching brackets.</description>
</key>
<key name="draw-spaces" enum="io.elementary.code.draw-spaces-states">
<default>"For Selection"</default>
Expand All @@ -102,12 +102,12 @@
<key name="spaces-instead-of-tabs" type="b">
<default>true</default>
<summary>Use spaces instead of tabs</summary>
<description>Whether Scratch should replace tabs with spaces</description>
<description>Whether Code should replace tabs with spaces</description>
</key>
<key name="auto-indent" type="b">
<default>true</default>
<summary>Use auto indent</summary>
<description>Whether Scratch should use auto indentation</description>
<description>Whether Code should use auto indentation</description>
</key>
<key name="indent-width" type="i">
<default>4</default>
Expand All @@ -117,7 +117,7 @@
<key name="use-system-font" type="b">
<default>true</default>
<summary>Use system font</summary>
<description>Whether Scratch should use the default system font</description>
<description>Whether Code should use the default system font</description>
</key>
<key name="font" type="s">
<default>'Droid Sans Mono 10'</default>
Expand All @@ -132,12 +132,12 @@
<key name="focused-document-view1" type="s">
<default>''</default>
<summary>Remember the last focused document.</summary>
<description>Restore the focused document from a previous session when opening Scratch.</description>
<description>Restore the focused document from a previous session when opening Code.</description>
</key>
<key name="focused-document-view2" type="s">
<default>''</default>
<summary>Remember the last focused document.</summary>
<description>Restore the focused document from a previous session when opening Scratch.</description>
<description>Restore the focused document from a previous session when opening Code.</description>
</key>
<key name="prefer-dark-style" type="b">
<default>false</default>
Expand Down
4 changes: 2 additions & 2 deletions plugins/brackets-completion/brackets-completion.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ IAge=2
Name=Brackets Completion
Description=Complete brackets while typing
Authors=Mario Guerriero <[email protected]>
Copyright=Copyright © 2012 Scratch and Euclide Developers
Website=http://launchpad.net/scratch
Copyright=Copyright © 2012 Code and Euclide Developers
Website=https://github.com/elementary/code
4 changes: 2 additions & 2 deletions plugins/browser-preview/browser-preview.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Name=Browser Preview
Description=Get a preview of your work in a web page
Icon=emblem-web
Authors=Mario Guerriero <[email protected]>
Copyright=Copyright © 2012 Scratch and Euclide Developers
Website=http://launchpad.net/scratch
Copyright=Copyright © 2012 Code and Euclide Developers
Website=https://github.com/elementary/code
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ IAge=2
Name=Highlight Word Selection
Description=Highlights all occurrences of words that are selected
Authors=Madelynn May <[email protected]>
Copyright=Copyright © 2014 Scratch and Euclide Developers
Website=http://launchpad.net/scratch
Copyright=Copyright © 2014 Code and Euclide Developers
Website=https://github.com/elementary/code
Hidden=false
4 changes: 2 additions & 2 deletions plugins/outline/outline.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ IAge=2
Name=Outline
Description=Outline symbols in your current file for Vala
Authors=Tom Beckmann <[email protected]>
Copyright=Copyright © 2013 Scratch Developers
Website=http://launchpad.net/scratch
Copyright=Copyright © 2013 Code Developers
Website=https://github.com/elementary/code
4 changes: 2 additions & 2 deletions plugins/pastebin/pastebin.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ IAge=2
Name=Pastebin
Description=Share files with pastebin service
Authors=Mario Guerriero <[email protected]>
Copyright=Copyright © 2012 Scratch and Euclide Developers
Website=http://launchpad.net/scratch
Copyright=Copyright © 2012 Code and Euclide Developers
Website=https://github.com/elementary/code
6 changes: 3 additions & 3 deletions plugins/pastebin/pastebin_dialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Scratch.Dialogs {
public class PasteBinDialog : Gtk.Dialog {

public string[,] languages = {
//if default, code, desc, scratch-equivalent
//if default, code, desc, Code-equivalent
{"n", "4cs", "4CS", ""},
{"n", "6502acme", "6502 ACME Cross Assembler", ""},
{"n", "6502kickass", "6502 Kick Assembler", ""},
Expand Down Expand Up @@ -267,12 +267,12 @@ namespace Scratch.Dialogs {
//populate combo box
var sel_lang = doc.get_language_id ();
for (var i = 0; i < languages.length[0]; i++) {
//insert all languages that are in the scratch combo, and also those that are marked with "y"
//insert all languages that are in the Code combo, and also those that are marked with "y"
if ((languages[i, 3] != "") || (languages[i, 0] == "y")) {
format_combo.append (languages[i, 1], languages[i, 2]);
}

//if the inserted language is selected in scratch combo, select it as default
//if the inserted language is selected in Code combo, select it as default
if (languages[i, 3] == sel_lang ) {
format_combo.set_active_id (languages[i, 1]);
}
Expand Down
4 changes: 2 additions & 2 deletions plugins/spell/spell.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Name=Spell Checker
Description=Checks the spelling of your documents
Icon=gtk-spell-check
Authors=Mario Guerrier <[email protected]>
Copyright=Copyright © 2012 Scratch and Euclide Developers
Website=http://launchpad.net/scratch
Copyright=Copyright © 2012 Code and Euclide Developers
Website=https://github.com/elementary/code
4 changes: 2 additions & 2 deletions plugins/strip-trailing-save/strip-trailing-save.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Name=Strip trailing whitespace
Description=Strip trailing whitespace on save
Icon=document-save
Authors=Filipe Funenga <[email protected]>
Copyright=Copyright © 2012 Scratch and Euclide Developers
Website=http://launchpad.net/scratch
Copyright=Copyright © 2012 Code and Euclide Developers
Website=https://github.com/elementary/code
4 changes: 2 additions & 2 deletions plugins/terminal/terminal.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Name=Terminal
Description=A terminal in your text editor
Icon=utilities-terminal
Authors=Mario Guerriero <[email protected]>
Copyright=Copyright © 2012 Scratch and Euclide Developers
Website=http://launchpad.net/scratch
Copyright=Copyright © 2012 Code and Euclide Developers
Website=https://github.com/elementary/code
4 changes: 2 additions & 2 deletions plugins/vim-emulation/vim-emulation.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ IAge=2
Name=Vim Emulation
Description=Use Vim commands in Code
Authors=Mario Guerriero <[email protected]>
Copyright=Copyright © 2013 Scratch and Euclide Developers
Website=http://launchpad.net/scratch
Copyright=Copyright © 2013 Code and Euclide Developers
Website=https://github.com/elementary/code
4 changes: 2 additions & 2 deletions plugins/word-completion/word-completion.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Loader=C
IAge=2
Description=Show a completion dialog with most used words from your files
Authors=Mario Guerriero <[email protected]>
Copyright=Copyright © 2012 Scratch and Euclide Developers
Website=http://launchpad.net/scratch
Copyright=Copyright © 2012 Code and Euclide Developers
Website=https://github.com/elementary/code
4 changes: 2 additions & 2 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ namespace Scratch {
ds_event.add_subject (new Zeitgeist.Subject ());
var ds_events = new GenericArray<Zeitgeist.Event> ();
ds_events.add(ds_event);
var ds = new Zeitgeist.DataSource.full ("scratch-logger",
_("Zeitgeist Datasource for Scratch"),
var ds = new Zeitgeist.DataSource.full ("code-logger",
_("Zeitgeist Datasource for Code"),
"A data source which logs Open, Close, Save and Move Events",
ds_events); // FIXME: templates!
registry.register_data_source.begin (ds, null, (obj, res) => {
Expand Down
6 changes: 3 additions & 3 deletions src/Services/TemplateManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
* Copyright (C) 2011-2012 Lucas Baudin <[email protected]>
* 2013 Mario Guerriero <[email protected]>
*
* This file is part of Scratch.
* This file is part of Code.
*
* Scratch is free software: you can redistribute it and/or modify it
* Code is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Scratch is distributed in the hope that it will be useful, but
* Code is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
Expand Down
6 changes: 3 additions & 3 deletions src/Widgets/SearchBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
* Copyright (C) 2011-2012 Lucas Baudin <[email protected]>
* 2013 Mario Guerriero <[email protected]>
*
* This file is part of Scratch.
* This file is part of Code.
*
* Scratch is free software: you can redistribute it and/or modify it
* Code is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Scratch is distributed in the hope that it will be useful, but
* Code is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
Expand Down

0 comments on commit 1f7b651

Please sign in to comment.