Skip to content

Commit

Permalink
Change RDNN prefix from com.github to io.github (#126)
Browse files Browse the repository at this point in the history
From https://docs.flathub.org/docs/for-app-authors/requirements#application-id

> Applications using code hosting IDs and hosted on github.com, gitlab.com, codeberg.org,
> framagit.org must use io.github., io.gitlab., page.codeberg., io.frama. prefixes
> respectively and must have at least 4 components.
  • Loading branch information
ryonakano authored Dec 31, 2024
1 parent 74f8f10 commit 3a07028
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: spreadsheet.flatpak
manifest-path: com.github.elework.spreadsheet.yml
manifest-path: io.github.elework.spreadsheet.yml
run-tests: true
repository-name: appcenter
repository-url: https://flatpak.elementary.io/repo.flatpakrepo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gettext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
- uses: elementary/actions/gettext-flatpak@main
with:
manifest-path: 'com.github.elework.spreadsheet.yml'
manifest-path: 'io.github.elework.spreadsheet.yml'
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ Then clone the project and go to its root directory. Run `meson build` to config
cd build
ninja

To install, use `ninja install`, then execute with `com.github.elework.spreadsheet`
To install, use `ninja install`, then execute with `io.github.elework.spreadsheet`

sudo ninja install
com.github.elework.spreadsheet
io.github.elework.spreadsheet

## Contributing

Expand Down
4 changes: 2 additions & 2 deletions data/spreadsheet.appdata.xml.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2018-2021 Spreadsheet Developers -->
<component type="desktop">
<id>com.github.elework.spreadsheet</id>
<launchable type="desktop-id">com.github.elework.spreadsheet.desktop</launchable>
<id>io.github.elework.spreadsheet</id>
<launchable type="desktop-id">io.github.elework.spreadsheet.desktop</launchable>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT</project_license>
<name>Spreadsheet</name>
Expand Down
4 changes: 2 additions & 2 deletions data/spreadsheet.desktop.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Name=Spreadsheet
GenericName=Spreadsheet App
Comment=Create simple and beautiful spreadsheets
Categories=Office;Spreadsheet;
Exec=com.github.elework.spreadsheet %U
Icon=com.github.elework.spreadsheet
Exec=io.github.elework.spreadsheet %U
Icon=io.github.elework.spreadsheet
Terminal=false
Type=Application
Keywords=Office;Book;
Expand Down
2 changes: 1 addition & 1 deletion data/spreadsheet.gresource.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/com/github/elework/spreadsheet">
<gresource prefix="/io/github/elework/spreadsheet">
<file alias="Application.css">Application.css</file>
</gresource>
</gresources>
2 changes: 1 addition & 1 deletion data/spreadsheet.gschema.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema path="/com/github/elework/spreadsheet/" id="com.github.elework.spreadsheet">
<schema path="/io/github/elework/spreadsheet/" id="io.github.elework.spreadsheet">
<key name="window-position" type="(ii)">
<default>(-1, -1)</default>
<summary>Window position</summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
id: com.github.elework.spreadsheet
id: io.github.elework.spreadsheet
runtime: io.elementary.Platform
runtime-version: '8'
sdk: io.elementary.Sdk
command: com.github.elework.spreadsheet
command: io.github.elework.spreadsheet
finish-args:
- '--share=ipc'
- '--socket=wayland'
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project(
'com.github.elework.spreadsheet',
'io.github.elework.spreadsheet',
'vala', 'c',
version: '0.1.0',
meson_version: '>=0.59.0'
Expand Down
2 changes: 1 addition & 1 deletion po/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Search for your language code (e.g. en = English, zh_CN = Chinese Simplified). S

## Translate .po Files

Now what you've been waiting for! Copy `po/com.github.elework.spreadsheet.pot` and name `po/<language_code>.po` and copy `po/extra/extra.pot` and name `po/extra/<language_code>.po`. Then translate these created .po files using a .po file editor of your choice (e.g. Poedit). The former file contains strings for the app itself and the latter is for metadata files (.appdata.xml and .desktop files).
Now what you've been waiting for! Copy `po/io.github.elework.spreadsheet.pot` and name `po/<language_code>.po` and copy `po/extra/extra.pot` and name `po/extra/<language_code>.po`. Then translate these created .po files using a .po file editor of your choice (e.g. Poedit). The former file contains strings for the app itself and the latter is for metadata files (.appdata.xml and .desktop files).

## Commit Your Translation Works

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/App.vala
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public class Spreadsheet.App : Gtk.Application {
}

static construct {
settings = new Settings ("com.github.elework.spreadsheet");
settings = new Settings ("io.github.elework.spreadsheet");
}

construct {
application_id = "com.github.elework.spreadsheet";
application_id = "io.github.elework.spreadsheet";
flags = ApplicationFlags.HANDLES_OPEN;

Intl.setlocale (LocaleCategory.ALL, "");
Expand Down
2 changes: 1 addition & 1 deletion src/UI/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public class Spreadsheet.UI.MainWindow : ApplicationWindow {

construct {
var cssprovider = new Gtk.CssProvider ();
cssprovider.load_from_resource ("/com/github/elework/spreadsheet/Application.css");
cssprovider.load_from_resource ("/io/github/elework/spreadsheet/Application.css");
Gtk.StyleContext.add_provider_for_screen (Gdk.Screen.get_default (),
cssprovider,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
Expand Down

0 comments on commit 3a07028

Please sign in to comment.