Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
b94cf37b by Ruslan Makhmatkhanov at 2021-03-28T14:34:23+02:00
Mention FreeBSD package in README
- - - - -
3d01c77a by Ruslan Makhmatkhanov at 2021-03-28T14:37:44+02:00
Replace Windows line endings with Unix ones
This change allows package maintainers to remove the
dos2unix dependency in Gajim’s FreeBSD port.
- - - - -
2 changed files:
- README.md
- gajim/plugins/plugins_i18n.py
Changes:
=====================================
README.md
=====================================
@@ -43,6 +43,7 @@ #### Packages
- [Debian](https://packages.debian.org/stable/gajim)
- [Fedora](https://apps.fedoraproject.org/packages/gajim)
- [Ubuntu](https://packages.ubuntu.com/gajim)
+- [FreeBSD](https://www.freshports.org/net-im/gajim/)
#### Flatpak
=====================================
gajim/plugins/plugins_i18n.py
=====================================
@@ -1,42 +1,42 @@
-# Copyright (C) 2010-2011 Denis Fomin <fominde AT gmail.com>
-#
-# This file is part of Gajim.
-#
-# Gajim 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; version 3 only.
-#
-# Gajim 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.
-#
-# You should have received a copy of the GNU General Public License
-# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
-
-import locale
-import gettext
-from pathlib import Path
-
-from gajim.common import configpaths
-
-DOMAIN = 'gajim_plugins'
-try:
- plugin_user_dir = configpaths.get('PLUGINS_USER')
-except KeyError:
- # This allows to import the module for tests
- print('No plugin translation path available')
- plugin_user_dir = Path.cwd()
-
-
-# python 3.7 gettext module does not support Path objects
-plugins_locale_dir = str(plugin_user_dir / 'locale')
-
-try:
- t = gettext.translation(DOMAIN, plugins_locale_dir)
- _ = t.gettext
-except OSError:
- _ = gettext.gettext
-
-if hasattr(locale, 'bindtextdomain'):
- locale.bindtextdomain(DOMAIN, plugins_locale_dir) # type: ignore
+# Copyright (C) 2010-2011 Denis Fomin <fominde AT gmail.com>
+#
+# This file is part of Gajim.
+#
+# Gajim 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; version 3 only.
+#
+# Gajim 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
+
+import locale
+import gettext
+from pathlib import Path
+
+from gajim.common import configpaths
+
+DOMAIN = 'gajim_plugins'
+try:
+ plugin_user_dir = configpaths.get('PLUGINS_USER')
+except KeyError:
+ # This allows to import the module for tests
+ print('No plugin translation path available')
+ plugin_user_dir = Path.cwd()
+
+
+# python 3.7 gettext module does not support Path objects
+plugins_locale_dir = str(plugin_user_dir / 'locale')
+
+try:
+ t = gettext.translation(DOMAIN, plugins_locale_dir)
+ _ = t.gettext
+except OSError:
+ _ = gettext.gettext
+
+if hasattr(locale, 'bindtextdomain'):
+ locale.bindtextdomain(DOMAIN, plugins_locale_dir) # type: ignore
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/4e6a0ade1952975de67b0b10487420b…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/4e6a0ade1952975de67b0b10487420b…
You're receiving this email because of your account on dev.gajim.org.