diff --git a/locales/de.json b/locales/de.json index 5f901b10..bf1974a5 100644 --- a/locales/de.json +++ b/locales/de.json @@ -232,6 +232,8 @@ "license": "Lizenz", "noCreditRequired": "Kein Credit erforderlich", "allowSellingGeneratedContent": "Verkauf erlaubt", + "allowSellingGeneratedContentTooltip": "Verkauf generierter Bilder erlauben", + "noCreditRequiredTooltip": "Modell ohne Nennung des Erstellers verwenden", "noTags": "Keine Tags", "autoTags": "Auto-Tags", "noBaseModelMatches": "Keine Basismodelle entsprechen der aktuellen Suche.", diff --git a/locales/en.json b/locales/en.json index e1d837aa..b4255602 100644 --- a/locales/en.json +++ b/locales/en.json @@ -232,6 +232,8 @@ "license": "License", "noCreditRequired": "No Credit Required", "allowSellingGeneratedContent": "Allow Selling", + "allowSellingGeneratedContentTooltip": "Allow selling generated images", + "noCreditRequiredTooltip": "Use the model without crediting the creator", "noTags": "No tags", "autoTags": "Auto Tags", "noBaseModelMatches": "No base models match the current search.", diff --git a/locales/es.json b/locales/es.json index 7007a3c8..b8e53217 100644 --- a/locales/es.json +++ b/locales/es.json @@ -232,6 +232,8 @@ "license": "Licencia", "noCreditRequired": "Sin crédito requerido", "allowSellingGeneratedContent": "Venta permitida", + "allowSellingGeneratedContentTooltip": "Permitir la venta de imágenes generadas", + "noCreditRequiredTooltip": "Usar el modelo sin atribuir al creador", "noTags": "Sin etiquetas", "autoTags": "Etiquetas automáticas", "noBaseModelMatches": "Ningún modelo base coincide con la búsqueda actual.", diff --git a/locales/fr.json b/locales/fr.json index a9bfe5f8..c3fc3bd5 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -232,6 +232,8 @@ "license": "Licence", "noCreditRequired": "Crédit non requis", "allowSellingGeneratedContent": "Vente autorisée", + "allowSellingGeneratedContentTooltip": "Autoriser la vente d\"images générées", + "noCreditRequiredTooltip": "Utiliser le modèle sans créditer le créateur", "noTags": "Aucun tag", "autoTags": "Auto-Tags", "noBaseModelMatches": "Aucun modèle de base ne correspond à la recherche actuelle.", diff --git a/locales/he.json b/locales/he.json index 6d187495..56da343c 100644 --- a/locales/he.json +++ b/locales/he.json @@ -232,6 +232,8 @@ "license": "רישיון", "noCreditRequired": "ללא קרדיט נדרש", "allowSellingGeneratedContent": "אפשר מכירה", + "allowSellingGeneratedContentTooltip": "אפשר מכירת תמונות שנוצרו", + "noCreditRequiredTooltip": "שימוש במודל ללא מתן קרדיט ליוצר", "noTags": "ללא תגיות", "autoTags": "תגיות אוטומטיות", "noBaseModelMatches": "אין מודלי בסיס התואמים לחיפוש הנוכחי.", diff --git a/locales/ja.json b/locales/ja.json index ef422633..145f6253 100644 --- a/locales/ja.json +++ b/locales/ja.json @@ -232,6 +232,8 @@ "license": "ライセンス", "noCreditRequired": "クレジット不要", "allowSellingGeneratedContent": "販売許可", + "allowSellingGeneratedContentTooltip": "生成した画像の販売を許可", + "noCreditRequiredTooltip": "クレジット表記なしでモデルを使用可能", "noTags": "タグなし", "autoTags": "自動タグ", "noBaseModelMatches": "現在の検索に一致するベースモデルはありません。", diff --git a/locales/ko.json b/locales/ko.json index 2cfeab8e..fbebd000 100644 --- a/locales/ko.json +++ b/locales/ko.json @@ -232,6 +232,8 @@ "license": "라이선스", "noCreditRequired": "크레딧 표기 없음", "allowSellingGeneratedContent": "판매 허용", + "allowSellingGeneratedContentTooltip": "생성된 이미지 판매 허용", + "noCreditRequiredTooltip": "크리에이터 저작자 표시 없이 모델 사용 가능", "noTags": "태그 없음", "autoTags": "자동 태그", "noBaseModelMatches": "현재 검색과 일치하는 베이스 모델이 없습니다.", diff --git a/locales/ru.json b/locales/ru.json index 40821803..43341ae1 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -232,6 +232,8 @@ "license": "Лицензия", "noCreditRequired": "Без указания авторства", "allowSellingGeneratedContent": "Продажа разрешена", + "allowSellingGeneratedContentTooltip": "Разрешить продажу сгенерированных изображений", + "noCreditRequiredTooltip": "Использование модели без указания автора", "noTags": "Без тегов", "autoTags": "Авто-теги", "noBaseModelMatches": "Нет базовых моделей, соответствующих текущему поиску.", diff --git a/locales/zh-CN.json b/locales/zh-CN.json index 9003e42e..e9c92562 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -232,6 +232,8 @@ "license": "许可证", "noCreditRequired": "无需署名", "allowSellingGeneratedContent": "允许销售", + "allowSellingGeneratedContentTooltip": "允许出售生成的图片", + "noCreditRequiredTooltip": "使用模型时无需注明原作者", "noTags": "无标签", "autoTags": "自动标签", "noBaseModelMatches": "没有基础模型符合当前搜索。", diff --git a/locales/zh-TW.json b/locales/zh-TW.json index 30c9cff2..a601fc3c 100644 --- a/locales/zh-TW.json +++ b/locales/zh-TW.json @@ -232,6 +232,8 @@ "license": "授權", "noCreditRequired": "無需署名", "allowSellingGeneratedContent": "允許銷售", + "allowSellingGeneratedContentTooltip": "允許出售生成的圖片", + "noCreditRequiredTooltip": "使用模型時無需註明原作者", "noTags": "無標籤", "autoTags": "自動標籤", "noBaseModelMatches": "沒有基礎模型符合目前的搜尋。", diff --git a/py/utils/civitai_utils.py b/py/utils/civitai_utils.py index de711404..c9965473 100644 --- a/py/utils/civitai_utils.py +++ b/py/utils/civitai_utils.py @@ -239,9 +239,9 @@ def _resolve_commercial_bits(values: Sequence[str]) -> int: normalized_values.add(normalized) has_sell = "sell" in normalized_values - has_rent = has_sell or "rent" in normalized_values - has_rentcivit = has_rent or "rentcivit" in normalized_values - has_image = has_sell or "image" in normalized_values + has_rent = "rent" in normalized_values + has_rentcivit = "rentcivit" in normalized_values + has_image = "image" in normalized_values commercial_bits = ( (1 if has_sell else 0) << 3 diff --git a/templates/components/header.html b/templates/components/header.html index f7a51240..95d5a2ea 100644 --- a/templates/components/header.html +++ b/templates/components/header.html @@ -218,10 +218,10 @@