diff --git a/README.md b/README.md index 0bfbbe2..78ba21e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Gamification by ReFlar -[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitlab.com/ReFlar/gamification/blob/master/LICENSE) [![Latest Stable Version](https://img.shields.io/packagist/v/reflar/gamification.svg)](https://gitlab.com/ReFlar/gamification) +[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/reflar/gamification/blob/master/LICENSE.md) [![Latest Stable Version](https://img.shields.io/packagist/v/reflar/gamification.svg)](https://packagist.org/packages/reflar/gamification) [![Total Downloads](https://img.shields.io/packagist/dt/reflar/gamification.svg)](https://packagist.org/packages/reflar/gamification) A [Flarum](http://flarum.org) extension that adds upvotes, downvotes, and ranks to your Flarum Community! @@ -41,9 +41,9 @@ This Extension is meant as a replacement for the Flarum Likes Extension. Therefo ### Issues -- [Open an issue on Gitlab](https://gitlab.com/ReFlar/gamification/issues) +- [Open an issue on GitHub](https://github.com/ReFlar/gamification/issues) ### Links -- [on gitlab](https://gitlab.com/ReFlar/gamification) +- [on github](https://github.com/ReFlar/gamification) - [on packagist](https://packagist.org/packages/ReFlar/gamification) diff --git a/composer.json b/composer.json index 6fe7fa6..299ac5c 100644 --- a/composer.json +++ b/composer.json @@ -14,19 +14,19 @@ "authors": [ { "name": "Christian Lopez", - "email": "ralkage@reflar.email", - "homepage": "https://reflar.io" + "email": "Christian.Lopez@redevs.org", + "homepage": "https://redevs.org" }, { "name": "Charlie K", - "email": "issyrocks12@reflar.email", - "homepage": "https://reflar.io" + "email": "Charlie.K@redevs.org", + "homepage": "https://redevs.org" } ], "support": { - "issues": "https://gitlab.com/ReDevelopers/ReFlar/gamification/issues", - "source": "https://gitlab.com/ReDevelopers/ReFlar/gamification" + "issues": "https://github.com/ReDevelopers/ReFlar/gamification/issues", + "source": "https://github.com/ReDevelopers/ReFlar/gamification" }, "require": { "flarum/core": "^0.1.0-beta.7" @@ -44,6 +44,9 @@ "backgroundColor": "#263238", "color": "#fff" } + }, + "flagrow": { + "discuss": "https://discuss.flarum.org/d/5588-gamification-by-reflar" } } -} \ No newline at end of file +} diff --git a/locale/it.yml b/locale/it.yml new file mode 100644 index 0000000..1da35d0 --- /dev/null +++ b/locale/it.yml @@ -0,0 +1,67 @@ +core: + forum: + index_sort: + hot_button: Tendenze + +reflar-gamification: + forum: + vote_title: Mostra Chi Ha Votato + nav: + name: Classifiche + ranking: + rank: Posizione + name: Utente + amount: Punteggio + notification: + upvote: "{username} ha votato positivamente il tuo messaggio" + downvote: "{username} ha votato negativamente il tuo messaggio" + user: + points: "Punteggio: {points}" + rank: "{rank}" + modal: + title: Votanti + upvotes_label: 'Positivi:' + downvotes_label: 'Negativi:' + mod_item: Visualizza Votanti + admin: + permissions: + vote_label: Vota positivamente/negativamente i messaggi + see_votes_label: Visualizza i voti positivi/negativi + see_ranking_page: Visualizza la classifica + nav: + desc: Ludicizzazione per la tua comunità Flarum + page: + rankings: + blocked: + placeholder: CDK2020, Ralkage, AngelAvila + title: Utenti Ignorati + help: Questi utenti non saranno mostrati nella classificha. I nomi utente devono essere separati da una virgola seguita da uno spazio. + title: Classifica + enable: Abilita immagini personalizzate + custom_image_1: 1ª posizione + custom_image_2: 2ª posizione + custom_image_3: 3ª posizione + votes: + points_title: Segnaposto Punteggio + points_placeholder: "Punteggio: " + color_holder: '#ffffff' + auto_upvote: Vota in automatico e positivamente i messaggi quando pubblicati + title: Voti + vote_color: Colore votato + icon_name: Icona voto positivo/negativo + icon_help: "Inserisci qualsiasi icona Font-Awesome che termina con -up e -down. Esempi: arrow, thumbs, chevron" + save_settings: Salva impostazioni + convert: + button: Converti Mi Piace in voti positivi + help: Converti i tuoi Mi Piace precedenti di flarum-ext-likes in voti positivi, così come calcola il gradimento per tutte le discussioni correnti. + converting: I tuoi Mi Piace sono in conversione. Ricarica il tuo sito tra qualche minuto per vedere i risultati. (I tempi di conversione potrebbero durare un po' a seconda del numero totale dei Mi Piace nel tuo forum) + converted: "Conversione con successo di {number} Mi Piace" + ranks: + title: Posizioni + ranks: Posizioni Personalizzate + number_title: Quanti distintivi di posizione devono essere mostrati? + help: + color: '#ffffff' + help: "Inserisci il numero richiesto di voti positivi, il nome della posizione, e il colore in esadecimale della posizione" + points: Punteggio + name: Nome diff --git a/locale/pl.yml b/locale/pl.yml new file mode 100644 index 0000000..7ea2198 --- /dev/null +++ b/locale/pl.yml @@ -0,0 +1,67 @@ +core: + forum: + index_sort: + hot_button: Popularne + +reflar-gamification: + forum: + vote_title: Pokaż, kto zagłosował + nav: + name: Rankingi + ranking: + rank: Miejsce + name: Użytkownik + amount: Punkty + notification: + upvote: "{username} oddał głos w górę na twój post" + downvote: "{username} oddał głos w dół na twój post" + user: + points: "Punkty: {points}" + rank: "{rank}" + modal: + title: Głosujący + upvotes_label: 'Upvoters:' + downvotes_label: 'Downvoters:' + mod_item: Zobacz Głosujących + admin: + permissions: + vote_label: Posty w górę/dół + see_votes_label: Zobacz posty w górę/dół + see_ranking_page: Zobacz stronę rankingową + nav: + desc: Gamification dla twojej społeczności Flarum + page: + rankings: + blocked: + placeholder: CDK2020, Ralkage, AngelAvila + title: Zignorowani użytkownicy + help: Ci użytkownicy nie będą wyświetlani na stronie rankingu. Nazwy użytkowników powinny być oddzielone przecinkiem i spacją. + title: Rankingi + enable: Włącz niestandardowe zdjęcia + custom_image_1: Zdjęcie 1 + custom_image_2: Zdjęcie 2 + custom_image_3: Zdjęcie 3 + votes: + points_title: Punkty Placeholder + points_placeholder: "Punkty: " + color_holder: '#ffffff' + auto_upvote: Automatycznie śledź posty po ich opublikowaniu + title: Głosy + vote_color: Głosowany kolor + icon_name: Ikonka głosów w górę/dół + icon_help: "Wprowadź dowolną ikonę Font-Awesome. Przykłady: arrow, thumbs, chevron" + save_settings: Zapisz ustawienia + convert: + button: Konwertuj polubienia na głosy w górę + help: Convert your previous likes from flarum-ext-likes into upvotes, as well as calculate the hotness for all current discussions. + converting: Your likes are now being converted. Refresh your site after a few minutes to see the process finished. (Conversion time might take a while depending on your total forum likes) + converted: "Pomyślnie skonwertowano wszystkie {number} polubień" + ranks: + title: Rangi + ranks: Rangi niestandardowe + number_title: Ile rang należy pokazywać? + help: + color: '#ffffff' + help: "Wprowadź wymaganą liczbę Głosów w górę, nazwę rangi oraz jej kolor" + points: Punkty + name: Nazwa diff --git a/migrations/2017_09_05_214452_add_time_attribute_to_users.php b/migrations/2017_09_05_214452_add_time_attribute_to_users.php index a7be001..d954acc 100644 --- a/migrations/2017_09_05_214452_add_time_attribute_to_users.php +++ b/migrations/2017_09_05_214452_add_time_attribute_to_users.php @@ -14,9 +14,11 @@ return [ 'up' => function (Builder $schema) { - $schema->table('users', function (Blueprint $table) { - $table->dateTime('last_vote_time'); - }); + if (!$schema->hasColumn('users', 'last_vote_time')) { + $schema->table('users', function (Blueprint $table) { + $table->dateTime('last_vote_time'); + }); + } }, 'down' => function (Builder $schema) { $schema->table('users', function (Blueprint $table) {