diff --git a/README.md b/README.md index 807896a91..776e402c5 100644 --- a/README.md +++ b/README.md @@ -91,8 +91,6 @@ community of cog repositories.** - [Arch Linux](https://red-discordbot.readthedocs.io/en/v3-develop/install_linux_mac.html) - [Raspbian Stretch](https://red-discordbot.readthedocs.io/en/v3-develop/install_linux_mac.html) -Already using **Red** V2? Take a look at the [Data Converter](https://red-discordbot.readthedocs.io/en/v3-develop/cog_dataconverter.html) -to import your data to V3. If after reading the guide you are still experiencing issues, feel free to join the [Official Discord Server](https://discord.gg/red) and ask in the **#support** channel for help. diff --git a/docs/cog_dataconverter.rst b/docs/cog_dataconverter.rst deleted file mode 100644 index 4f5e23b4f..000000000 --- a/docs/cog_dataconverter.rst +++ /dev/null @@ -1,62 +0,0 @@ -.. Importing data from a V2 install - -================================ -Importing data from a V2 install -================================ - ----------------- -What you'll need ----------------- - -1. A Running V3 bot -2. The path where your V2 bot is installed - --------------- -Importing data --------------- - -.. important:: - - Unless otherwise specified, the V2 data will take priority over V3 data for the same entires - -.. important:: - - For the purposes of this guide, your prefix will be denoted as - [p] - - You should swap whatever you made your prefix in for this. - All of the below are commands to be entered in discord where the bot can - see them. - -The dataconverter cog is not loaded by default. To start, load it with - -.. code-block:: none - - [p]load dataconverter - -Next, you'll need to give it the path where your V2 install is. - -On linux and OSX, it may look something like: - -.. code-block:: none - - /home/username/Red-DiscordBot/ - -On Windows it will look something like: - -.. code-block:: none - - C:\Users\yourusername\Red-DiscordBot - -Once you have that path, give it to the bot with the following command -(make sure to swap your own path in) - -.. code-block:: none - - [p]convertdata /home/username/Red-DiscordBot/ - - -From here, if the path is correct, you will be prompted with an interactive menu asking you -what data you would like to import - -You can select an entry by number, or quit with any of 'quit', 'exit', 'q', '-1', or 'cancel' diff --git a/docs/framework_utils.rst b/docs/framework_utils.rst index 5b7037809..468d880f0 100644 --- a/docs/framework_utils.rst +++ b/docs/framework_utils.rst @@ -40,12 +40,6 @@ Mod Helpers .. automodule:: redbot.core.utils.mod :members: -V2 Data Conversion -================== - -.. automodule:: redbot.core.utils.data_converter - :members: DataConverter - Tunnel ====== diff --git a/docs/guide_data_conversion.rst b/docs/guide_data_conversion.rst deleted file mode 100644 index a25c58204..000000000 --- a/docs/guide_data_conversion.rst +++ /dev/null @@ -1,154 +0,0 @@ -.. Converting Data from a V2 cog - -.. role:: python(code) - :language: python - -============================ -Importing Data From a V2 Cog -============================ - -This guide serves as a tutorial on using the DataConverter class -to import settings from a V2 cog. - ------------------- -Things you'll need ------------------- - -1. The path where each file holding related settings in v2 is -2. A conversion function to take the data and transform it to conform to Config - ------------------------ -Getting your file paths ------------------------ - -You should probably not try to find the files manually. -Asking the user for the base install path and using a relative path to where the -data should be, then testing that the file exists there is safer. This is especially -True if your cog has multiple settings files - -Example - -.. code-block:: python - - from discord.ext import commands - from pathlib import Path - - @commands.command(name="filefinder") - async def file_finding_command(self, ctx, filepath): - """ - this finds a file based on a user provided input and a known relative path - """ - - base_path = Path(filepath) - fp = base_path / 'data' / 'mycog' / 'settings.json' - if not fp.is_file(): - pass - # fail, prompting user - else: - pass - # do something with the file - ---------------- -Converting data ---------------- - -Once you've gotten your v2 settings file, you'll want to be able to import it -There are a couple options available depending on how you would like to convert -the data. - -The first one takes a data path, and a conversion function and does the rest for you. -This is great for simple data that just needs to quickly be imported without much -modification. - - -Here's an example of that in use: - -.. code-block:: python - - from pathlib import Path - from discord.ext import commands - - from redbot.core.utils.data_converter import DataConverter as dc - from redbot.core.config import Config - - ... - - - async def import_v2(self, file_path: Path): - """ - to be called from a command limited to owner - - This should be a coroutine as the convert function will - need to be awaited - """ - - # First we give the converter our cog's Config instance. - converter = dc(self.config) - - # next we design a way to get all of the data into Config's internal - # format. This should be a generator, but you can also return a single - # list with identical results outside of memory usage - def conversion_spec(v2data): - for guild_id in v2.data.keys(): - yield {(Config.GUILD, guild_id): {('blacklisted',): True}} - # This is yielding a dictionary that is designed for config's set_raw. - # The keys should be a tuple of Config scopes + the needed Identifiers. The - # values should be another dictionary whose keys are tuples representing - # config settings, the value should be the value to set for that. - - # Then we pass the file and the conversion function - await converter.convert(file_path, conversion_spec) - # From here, our data should be imported - - -You can also choose to convert all of your data and pass it as a single dict -This can be useful if you want finer control over the dataconversion or want to -preserve any data from v3 that may share the same entry and set it aside to prompt -a user - -.. code-block:: python - - from pathlib import Path - from discord.ext import commands - - from redbot.core.utils.data_converter import DataConverter as dc - from redbot.core.config import Config - - ... - - await dc(config_instance).dict_import(some_processed_dict) - - -The format of the items of the dict is the same as in the above example - - ------------------------------------ -Config Scopes and their Identifiers ------------------------------------ - -This section is provided as a quick reference for the identifiers for default -scopes available in Config. This does not cover usage of custom scopes, though the -data converter is compatible with those as well. - -Global:: - :code:`(Config.GLOBAL,)` -Guild:: - :code:`(Config.GUILD, guild_id)` -Channel:: - :code:`(Config.CHANNEL, channel_id)` -User:: - :code:`(Config.USER, user_id)` -Member:: - :code:`(Config.MEMBER, guild_id, user_id)` -Role:: - :code:`(Config.ROLE, role_id)` - - ------------------------------ -More information and Examples ------------------------------ - -For a more in depth look at how all of these commands function -You may want to take a look at how core data is being imported - -:code:`redbot/cogs/dataconverter/core_specs.py` \ No newline at end of file diff --git a/docs/index.rst b/docs/index.rst index 43f9cda67..8826fe389 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -13,7 +13,6 @@ Welcome to Red - Discord Bot's documentation! install_windows install_linux_mac venv_guide - cog_dataconverter autostart_systemd .. toctree:: @@ -30,7 +29,6 @@ Welcome to Red - Discord Bot's documentation! guide_migration guide_cog_creation - guide_data_conversion framework_bank framework_bot framework_checks diff --git a/redbot/cogs/dataconverter/__init__.py b/redbot/cogs/dataconverter/__init__.py deleted file mode 100644 index 24b5d0f3a..000000000 --- a/redbot/cogs/dataconverter/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -from redbot.core.bot import Red -from .dataconverter import DataConverter - - -def setup(bot: Red): - bot.add_cog(DataConverter(bot)) diff --git a/redbot/cogs/dataconverter/core_specs.py b/redbot/cogs/dataconverter/core_specs.py deleted file mode 100644 index 08cc2ce57..000000000 --- a/redbot/cogs/dataconverter/core_specs.py +++ /dev/null @@ -1,174 +0,0 @@ -from itertools import chain, starmap -from pathlib import Path -from datetime import datetime - -from redbot.core.bot import Red -from redbot.core.utils.data_converter import DataConverter as dc -from redbot.core.config import Config - - -class SpecResolver(object): - """ - Resolves Certain things for DataConverter - """ - - def __init__(self, path: Path): - self.v2path = path - self.resolved = set() - self.available_core_conversions = { - "Bank Accounts": { - "cfg": ("Bank", None, 384734293238749), - "file": self.v2path / "data" / "economy" / "bank.json", - "converter": self.bank_accounts_conv_spec, - }, - "Economy Settings": { - "cfg": ("Economy", "config", 1256844281), - "file": self.v2path / "data" / "economy" / "settings.json", - "converter": self.economy_conv_spec, - }, - "Mod Log Cases": { - "cfg": ("ModLog", None, 1354799444), - "file": self.v2path / "data" / "mod" / "modlog.json", - "converter": None, # prevents from showing as available - }, - "Filter": { - "cfg": ("Filter", "settings", 4766951341), - "file": self.v2path / "data" / "mod" / "filter.json", - "converter": self.filter_conv_spec, - }, - "Past Names": { - "cfg": ("Mod", "settings", 4961522000), - "file": self.v2path / "data" / "mod" / "past_names.json", - "converter": self.past_names_conv_spec, - }, - "Past Nicknames": { - "cfg": ("Mod", "settings", 4961522000), - "file": self.v2path / "data" / "mod" / "past_nicknames.json", - "converter": self.past_nicknames_conv_spec, - }, - "Custom Commands": { - "cfg": ("CustomCommands", "config", 414589031223512), - "file": self.v2path / "data" / "customcom" / "commands.json", - "converter": self.customcom_conv_spec, - }, - } - - @property - def available(self): - return sorted( - k - for k, v in self.available_core_conversions.items() - if v["file"].is_file() and v["converter"] is not None and k not in self.resolved - ) - - def unpack(self, parent_key, parent_value): - """Unpack one level of nesting in a dictionary""" - try: - items = parent_value.items() - except AttributeError: - yield (parent_key, parent_value) - else: - for key, value in items: - yield (parent_key + (key,), value) - - def flatten_dict(self, dictionary: dict): - """Flatten a nested dictionary structure""" - dictionary = {(key,): value for key, value in dictionary.items()} - while True: - dictionary = dict(chain.from_iterable(starmap(self.unpack, dictionary.items()))) - if not any(isinstance(value, dict) for value in dictionary.values()): - break - return dictionary - - def apply_scope(self, scope: str, data: dict): - return {(scope,) + k: v for k, v in data.items()} - - def bank_accounts_conv_spec(self, data: dict): - flatscoped = self.apply_scope(Config.MEMBER, self.flatten_dict(data)) - ret = {} - for k, v in flatscoped.items(): - outerkey, innerkey = tuple(k[:-1]), (k[-1],) - if outerkey not in ret: - ret[outerkey] = {} - if innerkey[0] == "created_at": - x = int(datetime.strptime(v, "%Y-%m-%d %H:%M:%S").timestamp()) - ret[outerkey].update({innerkey: x}) - else: - ret[outerkey].update({innerkey: v}) - return ret - - def economy_conv_spec(self, data: dict): - flatscoped = self.apply_scope(Config.GUILD, self.flatten_dict(data)) - ret = {} - for k, v in flatscoped.items(): - outerkey, innerkey = (*k[:-1],), (k[-1],) - if outerkey not in ret: - ret[outerkey] = {} - ret[outerkey].update({innerkey: v}) - return ret - - def mod_log_cases(self, data: dict): - raise NotImplementedError("This one isn't ready yet") - - def filter_conv_spec(self, data: dict): - return {(Config.GUILD, k): {("filter",): v} for k, v in data.items()} - - def past_names_conv_spec(self, data: dict): - return {(Config.USER, k): {("past_names",): v} for k, v in data.items()} - - def past_nicknames_conv_spec(self, data: dict): - flatscoped = self.apply_scope(Config.MEMBER, self.flatten_dict(data)) - ret = {} - for config_identifiers, v2data in flatscoped.items(): - if config_identifiers not in ret: - ret[config_identifiers] = {} - ret[config_identifiers].update({("past_nicks",): v2data}) - return ret - - def customcom_conv_spec(self, data: dict): - flatscoped = self.apply_scope(Config.GUILD, self.flatten_dict(data)) - ret = {} - for k, v in flatscoped.items(): - outerkey, innerkey = (*k[:-1],), ("commands", k[-1]) - if outerkey not in ret: - ret[outerkey] = {} - - ccinfo = { - "author": {"id": 42, "name": "Converted from a v2 instance"}, - "command": k[-1], - "created_at": "{:%d/%m/%Y %H:%M:%S}".format(datetime.utcnow()), - "editors": [], - "response": v, - } - ret[outerkey].update({innerkey: ccinfo}) - return ret - - def get_config_object(self, bot, cogname, attr, _id): - try: - config = getattr(bot.get_cog(cogname), attr) - except (TypeError, AttributeError): - config = Config.get_conf(None, _id, cog_name=cogname) - - return config - - def get_conversion_info(self, prettyname: str): - info = self.available_core_conversions[prettyname] - filepath, converter = info["file"], info["converter"] - (cogname, attr, _id) = info["cfg"] - return filepath, converter, cogname, attr, _id - - async def convert(self, bot: Red, prettyname: str, config=None): - if prettyname not in self.available: - raise NotImplementedError("No Conversion Specs for this") - - filepath, converter, cogname, attr, _id = self.get_conversion_info(prettyname) - if config is None: - config = self.get_config_object(bot, cogname, attr, _id) - - try: - items = converter(dc.json_load(filepath)) - await dc(config).dict_import(items) - except Exception: - raise - else: - self.resolved.add(prettyname) diff --git a/redbot/cogs/dataconverter/dataconverter.py b/redbot/cogs/dataconverter/dataconverter.py deleted file mode 100644 index ee17f7a68..000000000 --- a/redbot/cogs/dataconverter/dataconverter.py +++ /dev/null @@ -1,73 +0,0 @@ -from pathlib import Path -import asyncio - -from redbot.core import checks, commands -from redbot.core.bot import Red -from redbot.core.i18n import Translator, cog_i18n -from redbot.cogs.dataconverter.core_specs import SpecResolver -from redbot.core.utils.chat_formatting import box -from redbot.core.utils.predicates import MessagePredicate - -_ = Translator("DataConverter", __file__) - - -@cog_i18n(_) -class DataConverter(commands.Cog): - """Import Red V2 data to your V3 instance.""" - - def __init__(self, bot: Red): - super().__init__() - self.bot = bot - - @checks.is_owner() - @commands.command(name="convertdata") - async def dataconversioncommand(self, ctx: commands.Context, v2path: str): - """Interactive prompt for importing data from Red V2. - - Takes the path where the V2 install is, and overwrites - values which have entries in both V2 and v3; use with caution. - """ - resolver = SpecResolver(Path(v2path.strip())) - - if not resolver.available: - return await ctx.send( - _( - "There don't seem to be any data files I know how to " - "handle here. Are you sure you gave me the base " - "installation path?" - ) - ) - while resolver.available: - menu = _("Please select a set of data to import by number, or 'exit' to exit") - for index, entry in enumerate(resolver.available, 1): - menu += "\n{}. {}".format(index, entry) - - menu_message = await ctx.send(box(menu)) - - try: - message = await self.bot.wait_for( - "message", check=MessagePredicate.same_context(ctx), timeout=60 - ) - except asyncio.TimeoutError: - return await ctx.send(_("Try this again when you are ready.")) - else: - if message.content.strip().lower() in ["quit", "exit", "-1", "q", "cancel"]: - return await ctx.tick() - try: - message = int(message.content.strip()) - to_conv = resolver.available[message - 1] - except (ValueError, IndexError): - await ctx.send(_("That wasn't a valid choice.")) - continue - else: - async with ctx.typing(): - await resolver.convert(self.bot, to_conv) - await ctx.send(_("{} converted.").format(to_conv)) - await menu_message.delete() - else: - return await ctx.send( - _( - "There isn't anything else I know how to convert here.\n" - "There might be more things I can convert in the future." - ) - ) diff --git a/redbot/cogs/dataconverter/locales/ar-SA.po b/redbot/cogs/dataconverter/locales/ar-SA.po deleted file mode 100644 index 0be42a091..000000000 --- a/redbot/cogs/dataconverter/locales/ar-SA.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:06\n" -"Last-Translator: Kowlin \n" -"Language-Team: Arabic\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: ar\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: ar_SA\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/bg-BG.po b/redbot/cogs/dataconverter/locales/bg-BG.po deleted file mode 100644 index d115edbe5..000000000 --- a/redbot/cogs/dataconverter/locales/bg-BG.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:06\n" -"Last-Translator: Kowlin \n" -"Language-Team: Bulgarian\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: bg\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: bg_BG\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/da-DK.po b/redbot/cogs/dataconverter/locales/da-DK.po deleted file mode 100644 index 3b36c65f4..000000000 --- a/redbot/cogs/dataconverter/locales/da-DK.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:07\n" -"Last-Translator: Kowlin \n" -"Language-Team: Danish\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: da\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: da_DK\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/de-DE.po b/redbot/cogs/dataconverter/locales/de-DE.po deleted file mode 100644 index 04820a72b..000000000 --- a/redbot/cogs/dataconverter/locales/de-DE.po +++ /dev/null @@ -1,60 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:07\n" -"Last-Translator: Kowlin \n" -"Language-Team: German\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: de\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: de_DE\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "Importiere Red V2 Daten in deine V3 Instanz." - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "Interaktive Eingabeaufforderung um Daten aus Red V2 zu importieren.\n\n" -" Nimmt den Pfad der V2 Installation und überschreibt\n" -" Werte die Einträge in V2 und V3 haben; vorsichtig benutzen.\n" -" " - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "Es scheint keine Dateien zu geben, die ich nutzen kann. Bist du sicher, dass du dem Basis-Installationspfad gefolgt bist?" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "Wähle einen Datensatz zum importieren per Nummer oder `exit` zum beenden" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "Versuche dies erneut wenn du bereit bist." - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "Das war keine valide Auswahl." - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "{} konvertiert." - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "Es gibt nichts mehr, was ich konvertieren könnte.\n" -"Es könnte in Zukunft mehr geben, was ich konvertieren kann." - diff --git a/redbot/cogs/dataconverter/locales/el-GR.po b/redbot/cogs/dataconverter/locales/el-GR.po deleted file mode 100644 index f48380279..000000000 --- a/redbot/cogs/dataconverter/locales/el-GR.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:07\n" -"Last-Translator: Kowlin \n" -"Language-Team: Greek\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: el\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: el_GR\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/en-PT.po b/redbot/cogs/dataconverter/locales/en-PT.po deleted file mode 100644 index 974e66eae..000000000 --- a/redbot/cogs/dataconverter/locales/en-PT.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:08\n" -"Last-Translator: Kowlin \n" -"Language-Team: Pirate English\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: en-PT\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: en_PT\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/es-ES.po b/redbot/cogs/dataconverter/locales/es-ES.po deleted file mode 100644 index 399a2a08d..000000000 --- a/redbot/cogs/dataconverter/locales/es-ES.po +++ /dev/null @@ -1,57 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:06\n" -"Last-Translator: Kowlin \n" -"Language-Team: Spanish\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: es-ES\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: es_ES\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "No parece que haya aquí ningún archivo de datos que yo sepa manejar. ¿Estás seguro que me has dado la ruta de instalación base?" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "Por favor seleccione un conjunto de datos para importar por número, o 'salir' para salir" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "Esa no era una opción válida." - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "{} convertido." - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "Aquí no hay nada mas que yo sepa como convertir.\n" -"Aquí podrá haber cosas que yo pueda convertir en el futuro." - diff --git a/redbot/cogs/dataconverter/locales/fi-FI.po b/redbot/cogs/dataconverter/locales/fi-FI.po deleted file mode 100644 index 1fd27ec77..000000000 --- a/redbot/cogs/dataconverter/locales/fi-FI.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:07\n" -"Last-Translator: Kowlin \n" -"Language-Team: Finnish\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: fi\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: fi_FI\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/fr-FR.po b/redbot/cogs/dataconverter/locales/fr-FR.po deleted file mode 100644 index 4932cd902..000000000 --- a/redbot/cogs/dataconverter/locales/fr-FR.po +++ /dev/null @@ -1,57 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:06\n" -"Last-Translator: Kowlin \n" -"Language-Team: French\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: fr\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: fr_FR\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "Importe des données venant de la V2 de Red vers votre instance Red V3." - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "Il ne semble pas y avoir de fichiers de données que je puisse gérer ici. Êtes-vous sûr de m'avoir donné le chemin d'installation de base?" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "Veuillez sélectionner un ensemble de données à importer par numéro ou \"exit\" pour quitter" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "Essayez à nouveau quand vous êtes prêt." - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "Ce n’était pas un choix valide." - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "{} converti." - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "Il n'y a rien d'autre que je puisse convertir ici.\n" -"Il pourrait y avoir beaucoup plus de choses que je puisse convertir à l'avenir." - diff --git a/redbot/cogs/dataconverter/locales/hu-HU.po b/redbot/cogs/dataconverter/locales/hu-HU.po deleted file mode 100644 index 4d1240ba6..000000000 --- a/redbot/cogs/dataconverter/locales/hu-HU.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:07\n" -"Last-Translator: Kowlin \n" -"Language-Team: Hungarian\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: hu\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: hu_HU\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/id-ID.po b/redbot/cogs/dataconverter/locales/id-ID.po deleted file mode 100644 index 19279046a..000000000 --- a/redbot/cogs/dataconverter/locales/id-ID.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:08\n" -"Last-Translator: Kowlin \n" -"Language-Team: Indonesian\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: id\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: id_ID\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/it-IT.po b/redbot/cogs/dataconverter/locales/it-IT.po deleted file mode 100644 index f8e78714d..000000000 --- a/redbot/cogs/dataconverter/locales/it-IT.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:07\n" -"Last-Translator: Kowlin \n" -"Language-Team: Italian\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: it\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: it_IT\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/ja-JP.po b/redbot/cogs/dataconverter/locales/ja-JP.po deleted file mode 100644 index 3a70ce7b0..000000000 --- a/redbot/cogs/dataconverter/locales/ja-JP.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:07\n" -"Last-Translator: Kowlin \n" -"Language-Team: Japanese\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: ja\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: ja_JP\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/ko-KR.po b/redbot/cogs/dataconverter/locales/ko-KR.po deleted file mode 100644 index b1bb21a60..000000000 --- a/redbot/cogs/dataconverter/locales/ko-KR.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:07\n" -"Last-Translator: Kowlin \n" -"Language-Team: Korean\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: ko\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: ko_KR\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "제가 처리해야 하는 데이터 파일이 없는 것 같습니다. 기본 설치 경로를 저에게 준 것이 확실한가요?" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "중요한 데이터를 설정합니다. (오직 숫자만 입력 가능합니다. 또는 'exit' 를 입력하여 종료하실 수 있습니다)" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/lol-US.po b/redbot/cogs/dataconverter/locales/lol-US.po deleted file mode 100644 index fbc6214c2..000000000 --- a/redbot/cogs/dataconverter/locales/lol-US.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:08\n" -"Last-Translator: Kowlin \n" -"Language-Team: LOLCAT\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: lol\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: lol_US\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/nl-NL.po b/redbot/cogs/dataconverter/locales/nl-NL.po deleted file mode 100644 index fd7308c0a..000000000 --- a/redbot/cogs/dataconverter/locales/nl-NL.po +++ /dev/null @@ -1,60 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:07\n" -"Last-Translator: Kowlin \n" -"Language-Team: Dutch\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: nl\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: nl_NL\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "Importeer de data van V2 naar je V3 instantie." - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "Interactieve prompt voor het importeren van gegevens van Red V2.\n\n" -" Neemt het pad waar de V2-installatie zich bevindt en overschrijft\n" -" waarden met vermeldingen in zowel V2 als v3; voorzichtig gebruiken.\n" -" " - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "Er lijken geen gegevensbestanden te zijn die ik hier weet aan te wijzen. Weet je zeker dat je me het basisinstallatiepad hebt gegeven?" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "Selecteer een set gegevens om te importeren op nummer of typ 'exit' om af te sluiten" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "Probeer dit opnieuw als je klaar bent." - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "Dat was geen geldige keuze." - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "{} geconverteerd." - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "Er is niets anders dat ik hier weet te converteren.\n" -"Er kunnen in de toekomst meer dingen zijn die ik kan omzetten." - diff --git a/redbot/cogs/dataconverter/locales/no-NO.po b/redbot/cogs/dataconverter/locales/no-NO.po deleted file mode 100644 index a63b26504..000000000 --- a/redbot/cogs/dataconverter/locales/no-NO.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:07\n" -"Last-Translator: Kowlin \n" -"Language-Team: Norwegian\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: no\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: no_NO\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/pl-PL.po b/redbot/cogs/dataconverter/locales/pl-PL.po deleted file mode 100644 index b6d30746e..000000000 --- a/redbot/cogs/dataconverter/locales/pl-PL.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:07\n" -"Last-Translator: Kowlin \n" -"Language-Team: Polish\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: pl\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: pl_PL\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/pt-BR.po b/redbot/cogs/dataconverter/locales/pt-BR.po deleted file mode 100644 index 9a7e68da6..000000000 --- a/redbot/cogs/dataconverter/locales/pt-BR.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:08\n" -"Last-Translator: Kowlin \n" -"Language-Team: Portuguese, Brazilian\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: pt-BR\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: pt_BR\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/pt-PT.po b/redbot/cogs/dataconverter/locales/pt-PT.po deleted file mode 100644 index 3275414c0..000000000 --- a/redbot/cogs/dataconverter/locales/pt-PT.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:07\n" -"Last-Translator: Kowlin \n" -"Language-Team: Portuguese\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: pt-PT\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: pt_PT\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/ru-RU.po b/redbot/cogs/dataconverter/locales/ru-RU.po deleted file mode 100644 index 12b5468e8..000000000 --- a/redbot/cogs/dataconverter/locales/ru-RU.po +++ /dev/null @@ -1,61 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 05:52\n" -"Last-Translator: Kowlin \n" -"Language-Team: Russian\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=4; plural=((n%10==1 && n%100!=11) ? 0 : ((n%10 >= 2 && n%10 <=4 && (n%100 < 12 || n%100 > 14)) ? 1 : ((n%10 == 0 || (n%10 >= 5 && n%10 <=9)) || (n%100 >= 11 && n%100 <= 14)) ? 2 : 3));\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: ru\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: ru_RU\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "Импортировать данные Red V2 в вашу сборку V3." - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "Интерактивная подсказка для импорта данных из Red V2.\n\n" -" Принимает путь, по которому устанавливается V2, и\n" -" перезаписывает значения, которые имеют записи как в V2,\n" -" так и в v3; используйте с осторожностью.\n" -" " - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "Кажется, здесь нет файлов данных, с которыми я знаю как обращаться. Вы уверены, что дали мне путь базовой установки?" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "Пожалуйста, выберите набор данных для импорта по номеру, или 'exit', чтобы выйти" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "Повторите попытку, когда вы будете готовы." - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "Это был неправильный выбор." - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "{} преобразован." - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "Нет ничего, что я знаю, как конвертировать здесь.\n" -"Возможно, в будущем я смогу конвертировать еще больше вещей." - diff --git a/redbot/cogs/dataconverter/locales/sk-SK.po b/redbot/cogs/dataconverter/locales/sk-SK.po deleted file mode 100644 index 13746e444..000000000 --- a/redbot/cogs/dataconverter/locales/sk-SK.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:07\n" -"Last-Translator: Kowlin \n" -"Language-Team: Slovak\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=4; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 3;\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: sk\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: sk_SK\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/sv-SE.po b/redbot/cogs/dataconverter/locales/sv-SE.po deleted file mode 100644 index fb956d6fe..000000000 --- a/redbot/cogs/dataconverter/locales/sv-SE.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:08\n" -"Last-Translator: Kowlin \n" -"Language-Team: Swedish\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: sv-SE\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: sv_SE\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/tr-TR.po b/redbot/cogs/dataconverter/locales/tr-TR.po deleted file mode 100644 index 98404bf4e..000000000 --- a/redbot/cogs/dataconverter/locales/tr-TR.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:08\n" -"Last-Translator: Kowlin \n" -"Language-Team: Turkish\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: tr\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: tr_TR\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/cogs/dataconverter/locales/zh-CN.po b/redbot/cogs/dataconverter/locales/zh-CN.po deleted file mode 100644 index 493d6abab..000000000 --- a/redbot/cogs/dataconverter/locales/zh-CN.po +++ /dev/null @@ -1,56 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: red-discordbot\n" -"POT-Creation-Date: 2019-01-11 02:18+0000\n" -"PO-Revision-Date: 2019-02-25 03:08\n" -"Last-Translator: Kowlin \n" -"Language-Team: Chinese Simplified\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Generated-By: redgettext 2.2\n" -"Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: crowdin.com\n" -"X-Crowdin-Project: red-discordbot\n" -"X-Crowdin-Language: zh-CN\n" -"X-Crowdin-File: /cogs/dataconverter/locales/messages.pot\n" -"Language: zh_CN\n" - -#: redbot/cogs/dataconverter/dataconverter.py:16 -#, docstring -msgid "Import Red V2 data to your V3 instance." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:25 -#, docstring -msgid "Interactive prompt for importing data from Red V2.\n\n" -" Takes the path where the V2 install is, and overwrites\n" -" values which have entries in both V2 and v3; use with caution.\n" -" " -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:34 -msgid "There don't seem to be any data files I know how to handle here. Are you sure you gave me the base installation path?" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:41 -msgid "Please select a set of data to import by number, or 'exit' to exit" -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:52 -msgid "Try this again when you are ready." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:60 -msgid "That wasn't a valid choice." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:65 -msgid "{} converted." -msgstr "" - -#: redbot/cogs/dataconverter/dataconverter.py:69 -msgid "There isn't anything else I know how to convert here.\n" -"There might be more things I can convert in the future." -msgstr "" - diff --git a/redbot/core/utils/data_converter.py b/redbot/core/utils/data_converter.py deleted file mode 100644 index d01aaaa11..000000000 --- a/redbot/core/utils/data_converter.py +++ /dev/null @@ -1,126 +0,0 @@ -import json -from pathlib import Path -from redbot.core import Config - - -class DataConverter: - """ - Class for moving v2 data to v3 - """ - - def __init__(self, config_instance: Config): - self.config = config_instance - - @staticmethod - def json_load(file_path: Path): - """Utility function for quickly grabbing data from a JSON file - - Parameters - ---------- - file_path: `pathlib.Path` - The path to the file to grabdata from - - Raises - ------ - FileNotFoundError - The file doesn't exist - json.JsonDecodeError - The file isn't valid JSON - """ - try: - with file_path.open(mode="r", encoding="utf-8") as f: - data = json.load(f) - except (FileNotFoundError, json.JSONDecodeError): - raise - else: - return data - - async def convert(self, file_path: Path, conversion_spec: object): - """Converts v2 data to v3 format. If your v2 data uses multiple files - you will need to call this for each file. - - Parameters - ---------- - file_path : `pathlib.Path` - This should be the path to a JSON settings file from v2 - conversion_spec : `object` - This should be a function which takes a single argument argument - (the loaded JSON) and from it either - returns or yields one or more `dict` - whose items are in the form:: - - {(SCOPE, *IDENTIFIERS): {(key_tuple): value}} - - an example of a possible entry of that dict:: - - {(Config.MEMBER, '133049272517001216', '78631113035100160'): - {('balance',): 9001}} - - - This allows for any amount of entries at each level - in each of the nested dictionaries returned by conversion_spec - but the nesting cannot be different to this and still get the - expected results - see documentation for Config for more details on scopes - and the identifiers they need - - Returns - ------- - None - - Raises - ------ - FileNotFoundError - No such file at the specified path - json.JSONDecodeError - File is not valid JSON - AttributeError - Something goes wrong with your conversion and it provides - data in the wrong format - """ - - v2data = self.json_load(file_path) - - for entryset in conversion_spec(v2data): - for scope_id, values in entryset.items(): - base = self.config._get_base_group(*scope_id) - for inner_k, inner_v in values.items(): - await base.set_raw(*inner_k, value=inner_v) - - async def dict_import(self, entrydict: dict): - """This imports a dictionary in the correct format into Config - - Parameters - ---------- - entrydict : `dict` - This should be a dictionary of values to set. - This is provided as an alternative - to providing a file and conversion specification - the dictionary should be in the following format:: - - {(SCOPE, *IDENTIFIERS): {(key_tuple): value}}` - - an example of a possible entry of that dict:: - - {(Config.MEMBER, '133049272517001216', '78631113035100160'): - {('balance',): 9001}} - - This allows for any amount of entries at each level - in each of the nested dictionaries returned by conversion_spec - but the nesting cannot be different to this and still get the - expected results - - Returns - ------- - None - - Raises - ------ - AttributeError - Data not in the correct format. - """ - - for scope_id, values in entrydict.items(): - base = self.config._get_base_group(*scope_id) - for inner_k, inner_v in values.items(): - await base.set_raw(*inner_k, value=inner_v) diff --git a/redbot/pytest/dataconverter.py b/redbot/pytest/dataconverter.py deleted file mode 100644 index f608cf721..000000000 --- a/redbot/pytest/dataconverter.py +++ /dev/null @@ -1,12 +0,0 @@ -from pathlib import Path - -from redbot.cogs.dataconverter import core_specs - -__all__ = ["get_specresolver"] - - -def get_specresolver(path): - here = Path(path) - - resolver = core_specs.SpecResolver(here.parent) - return resolver diff --git a/tests/cogs/dataconverter/__init__.py b/tests/cogs/dataconverter/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/tests/cogs/dataconverter/data/mod/past_nicknames.json b/tests/cogs/dataconverter/data/mod/past_nicknames.json deleted file mode 100644 index f44b2c0d6..000000000 --- a/tests/cogs/dataconverter/data/mod/past_nicknames.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "1" : { - "1" : [ - "Test", - "Test2", - "TEST3" - ], - "2" : [ - "Test4", - "Test5", - "TEST6" - ] - }, - "2" : { - "1" : [ - "Test", - "Test2", - "TEST3" - ], - "2" : [ - "Test4", - "Test5", - "TEST6" - ] - } -} \ No newline at end of file diff --git a/tests/cogs/dataconverter/test_dataconverter.py b/tests/cogs/dataconverter/test_dataconverter.py deleted file mode 100644 index 5c8d9a3e2..000000000 --- a/tests/cogs/dataconverter/test_dataconverter.py +++ /dev/null @@ -1,31 +0,0 @@ -import pytest -from collections import namedtuple - -from redbot.pytest.dataconverter import * -from redbot.core.utils.data_converter import DataConverter - - -def mock_dpy_object(id_): - return namedtuple("DPYObject", "id")(int(id_)) - - -def mock_dpy_member(guildid, userid): - return namedtuple("Member", "id guild")(int(userid), mock_dpy_object(guildid)) - - -@pytest.mark.asyncio -async def test_mod_nicknames(red): - specresolver = get_specresolver(__file__) - filepath, converter, cogname, attr, _id = specresolver.get_conversion_info("Past Nicknames") - conf = specresolver.get_config_object(red, cogname, attr, _id) - - v2data = DataConverter.json_load(filepath) - - await specresolver.convert(red, "Past Nicknames", config=conf) - - for guildid, guild_data in v2data.items(): - guild = mock_dpy_object(guildid) - for userid, user_data in guild_data.items(): - member = mock_dpy_member(guildid, userid) - - assert await conf.member(member).past_nicks() == user_data