id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
django_modeltranslation/django-parler-rest4_47_0.txt
| ### CHANGES.md
django_modeltranslation/django-rest-framework-translation5_8_0.txt
## Creating Translation Function Now, let’s create a utility function that uses the gtranslate library to translate text. This function will be used to automatically translate and store data in the translated_field:
django_modeltranslation/django-restful-translator8_58_0.txt
### Unverified details These details have not been verified by PyPI
django_modeltranslation/django-rest-framework-translation5_60_0.txt
We’ve had very little-to-no hiccups at all—it’s been a really pleasurable experience. #### Chacko Thomas
django_modeltranslation/django-rest-framework-translation5_77_0.txt
#### Marty Betz Co-Founder, Fox&Fork
django_modeltranslation/django-parler-rest4_35_0.txt
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master
django_modeltranslation/django-rest-framework-translation5_31_0.txt
##### Test Driven Development approach using Django Rest Framework Read More
django_modeltranslation/django-restful-translator8_37_0.txt
python manage.py drt_makemessages python manage.py drt_update_database 7. Converting Existing ` .po ` Files to DRT Format. Utilize the management command ` drt_convert_locales ` to transform existing ` .po ` files into a format suitable for use with the Django Restful Translator...
django_modeltranslation/django-restful-translator8_18_0.txt
## Functionality ` django_restful_translator ` provides:
django_modeltranslation/django-parler-rest4_46_0.txt
### AUTHORS.md | | ### CHANGES.md
django_modeltranslation/django-parler-rest4_85_0.txt
You can’t perform that action at this time.
django_modeltranslation/caveats.html6_12_0.txt
### This Page * Show Source
django_modeltranslation/django-restful-translator8_87_0.txt
### Built Distribution django_restful_translator-0.9.4-py3-none-any.whl (17.9 kB view hashes )
django_modeltranslation/django-parler-rest4_70_0.txt
Translatable model support for django-rest-framework ### Topics
django_modeltranslation/django-restful-translator8_40_0.txt
python manage.py drt_convert_locales --locale locale --remove-used ## Automatic Translation Feature Guide
django_modeltranslation/django-restful-translator8_65_0.txt
## Release history Release notifications | RSS feed
django_modeltranslation/django-parler-rest4_68_0.txt
## Running tests Tests are run with ` py.test ` :
django_modeltranslation/django-parler-rest4_27_0.txt
Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
django_modeltranslation/django-rest-framework-translation5_23_0.txt
##### Django Models and Database Integration: A Comprehensive Tutorial Read More
django_modeltranslation/django-parler-rest4_8_0.txt
Manage code changes * Issues
django_modeltranslation/django-rest-framework-translation5_33_0.txt
* Service * Career * ## Let's create something together!
django_modeltranslation/django-parler-rest4_21_0.txt
Search syntax tips # Provide feedback
django_modeltranslation/django_modeltranslation_3_1.txt
sync_translation_fields ` Command * The ` loaddata ` Command #### Previous topic [ Django Admin Integration ](admin.html "previous chapter") #### Next topic [ Caveats ](caveats.html "next chapter") ### This Page * [ Show Source ](_sources/commands.rst.txt) ### Quick search ### Navigation * [ i...
django_modeltranslation/django-restful-translator8_98_0.txt
Switch to desktop version * English * español * français * 日本語 * português (Brasil) * українська * Ελληνικά * Deutsch * 中文 (简体) * 中文 (繁體) * русский * עברית * esperanto
django_modeltranslation/caveats.html6_7_0.txt
## Using in combination with ` django-rest-framework ` ¶ When creating a new viewset , make sure to override ` get_queryset ` method, using ` queryset ` as a property won’t work because it is being evaluated once, before any language was set.
django_modeltranslation/django-restful-translator8_46_0.txt
# settings.py GOOGLE_CLOUD_PROJECT = 'your google cloud project id' GOOGLE_CLOUD_LOCATION = 'your google cloud location' ### For AWS Translate:
django_modeltranslation/django_modeltranslation_4_1.txt
pty_values ` are: ` None ` , ` '' ` and ` 'both' ` . ### [ Table of Contents ](index.html) * ModelForms * Formfields and nullability * None-checkbox widget #### Previous topic [ Accessing Translated and Translation Fields ](usage.html "previous chapter") #### Next topic [ Django Admin Integr...
django_modeltranslation/django-rest-framework-translation5_34_0.txt
* ## We’re looking for the best. Are you in? I collaborated with Mindbowser for several years on a complex SaaS platform project. They took over a partially completed project and successfully transformed it into a fully functional and robust platform. Throughout the entire process, the quality of their work...
django_modeltranslation/django-restful-translator8_72_0.txt
Feb 21, 2024 0.8.1
django_modeltranslation/django-rest-framework-translation5_20_0.txt
#### How to Effectively Hire and Manage A Remote Team of Developers
django_modeltranslation/django-rest-framework-translation5_6_0.txt
## Setting Up Django Model Assume you have a Django model named YourModel with a field named field_to_translate. We’ll add a new field called translated_field to store the translated text. Here’s how your model might look in Django REST Framework:
django_modeltranslation/django-restful-translator8_52_0.txt
python manage.py drt_translate_models --language=es --provider=google_v3 --all ### Verifying Translations
django_modeltranslation/django-restful-translator8_23_0.txt
* Flexibility : The ` TranslatableModel ` mixin can be added to any Django model with specified fields to translate. * Efficiency : By storing translations in the database and only translating fields when necessary, ` django_restful_translator ` minimizes unnecessary work.
django_modeltranslation/django-parler-rest4_84_0.txt
### Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information
django_modeltranslation/django-rest-framework-translation5_2_0.txt
* * * In a globalized world, applications often need to cater to users who speak different languages. If you’re building a Django application and want to translate database data into human-readable text, the gtranslate library can be a powerful tool. In this blog post, we’ll explore how to integrate Google Tran...
django_modeltranslation/django-restful-translator8_53_0.txt
After running the command, your translated text should now be available and stored in your database. You can verify this through your Django admin panel or by querying the models directly. ## Contributing
django_modeltranslation/django-restful-translator8_68_0.txt
Mar 27, 2024 0.9.2
django_modeltranslation/django-parler-rest4_19_0.txt
Search or jump to... # Search code, repositories, users, issues, pull requests...
django_modeltranslation/django-restful-translator8_41_0.txt
### Overview Our library provides an easy way to automatically translate fields in your Django models using popular translation providers such as Google Translate v2, v3, AWS Translate and DeepL. This guide will help you configure and use this feature.
django_modeltranslation/django-restful-translator8_3_0.txt
Search PyPI Search # django-restful-translator 0.9.4
django_modeltranslation/django-restful-translator8_31_0.txt
## Usage 1. Import the ` TranslatableModel ` in your models.py and use it as a base class for any model you want to be translatable.
django_modeltranslation/django-restful-translator8_5_0.txt
Released: Mar 28, 2024 A Django application providing translation functionalities for Django Rest Framework
django_modeltranslation/django-restful-translator8_47_0.txt
# settings.py AWS_ACCESS_KEY_ID = 'your aws access key here' AWS_SECRET_ACCESS_KEY = 'your aws secret access key here' AWS_REGION_NAME = 'your aws region name here' ### For DeepL Translate:
django_modeltranslation/django-restful-translator8_29_0.txt
LOCALE_PATHS = ( BASE_DIR / "locale", BASE_DIR / "drt_locale", ) LANGUAGES = ( ("en", "English"), ("sv", "Swedish"), ) LANGUAGE_CODE = "en" ## Migrations
django_modeltranslation/django-restful-translator8_73_0.txt
Feb 21, 2024 0.8.0
django_modeltranslation/django-restful-translator8_32_0.txt
from django_restful_translator.models import TranslatableModel class YourModel(TranslatableModel): ... 2. Add your translatable fields to the ` translatable_fields ` attribute.
django_modeltranslation/django-restful-translator8_35_0.txt
from django_restful_translator.admin import TranslationInline class YourModelAdmin(admin.ModelAdmin): inlines = [TranslationInline,] 5. When querying your translatable models, you can optimize your database queries by using ` prefetch_related ` to prefetch translations.
django_modeltranslation/django-restful-translator8_2_0.txt
Menu * Help * Sponsors * Log in * Register
django_modeltranslation/django-parler-rest4_41_0.txt
| ### parler_rest
django_modeltranslation/django-parler-rest4_56_0.txt
| ### setup.cfg
django_modeltranslation/django-rest-framework-translation5_83_0.txt
* Technologies * Frontend * Angular * React.JS * iOS * Android * Flutter * BLE * Backend * Python * PHP * Java * Node.JS * Ruby * React Native * Frameworks * Full Stack * Firebase * .Net * ME...
django_modeltranslation/django-restful-translator8_14_0.txt
Tags django, rest-framework, translation, i18n Requires: Python >=3.7
django_modeltranslation/django-restful-translator8_70_0.txt
Mar 25, 2024 0.9.0
django_modeltranslation/django-restful-translator8_0_0.txt
Skip to main content Switch to mobile version Warning Some features may not work without JavaScript. Please try enabling it if you encounter problems.
django_modeltranslation/django-rest-framework-translation5_66_0.txt
Very committed, they create beautiful apps and are very benevolent. They have brilliant Ideas. #### Laurie Mastrogiani
django_modeltranslation/django-restful-translator8_61_0.txt
View statistics for this project via Libraries.io , or by using our public dataset on Google BigQuery ###### Meta
django_modeltranslation/django-rest-framework-translation5_7_0.txt
from django.db import models from gtranslate import Translator Class Translation (models.Model): field_to_translate = models.CharField(max_length=255) translated_field = models.CharField(max_length=255, blank=True, null=True) Related read: Django Models and Database Integration: A C...
django_modeltranslation/django-rest-framework-translation5_54_0.txt
Mindbowser is one of the reasons that our app is successful. These guys have been a great team. #### Dave Dubier
django_modeltranslation/django-restful-translator8_80_0.txt
Oct 6, 2023 0.2.1
django_modeltranslation/django-restful-translator8_1_0.txt
Search PyPI Search * Help * Sponsors * Log in * Register
django_modeltranslation/django-parler-rest4_4_0.txt
Host and manage packages * Security
django_modeltranslation/django-rest-framework-translation5_24_0.txt
Technology Blogs ##### Integrating SendGrid With Django Rest Framework
django_modeltranslation/django-rest-framework-translation5_53_0.txt
#### Sudheer Bandaru CTO, Shortlist
django_modeltranslation/caveats.html6_8_0.txt
## Translating ` ManyToManyField ` fields ¶ Translated ` ManyToManyField ` fields do not support fallbacks. This is because the field descriptor returns a ` Manager ` when accessed. If falbacks were enabled we could find ourselves using the manager of a different language than the current one without realizing it...
django_modeltranslation/django-parler-rest4_9_0.txt
Plan and track work * Discussions
django_modeltranslation/django-rest-framework-translation5_38_0.txt
#### Anthony Lewis Co-Founder, Emerge
django_modeltranslation/django-parler-rest4_0_0.txt
Skip to content ## Navigation Menu
django_modeltranslation/django-restful-translator8_15_0.txt
###### Classifiers * Development Status * 3 - Alpha * Intended Audience * Developers * License * OSI Approved :: MIT License * Programming Language * Python :: 3.9
django_modeltranslation/django_modeltranslation_2_1.txt
nds") | * [ django-modeltranslation dev documentation ](index.html) » © Copyright 2009-2019, Peter Eschler, Dirk Eschler, Jacek Tomaszewski. Created using [ Sphinx ](http://sphinx-doc.org/) 1.8.6.
django_modeltranslation/django_modeltranslation_0_1.txt
not be executed and translation in the admin will not work for this class. But don’t panic, here’s a solution: class MyTranslatedEntryAdmin(EntryAdmin, TranslationAdmin): def formfield_for_dbfield(self, db_field, **kwargs): field = super(MyTranslatedEntryAdmin, self).formfield_for_db...
django_modeltranslation/django_modeltranslation_1_2.txt
Auto-population turned on, copying translated field value to default language field (unless its value is provided) ` 'required' ` Acts like ` 'default' ` , but copy value only if the original field is non-nullable ## Falling back ¶ Modeltranslation provides a mechanism to control behaviour of data acce...
django_modeltranslation/django-restful-translator8_38_0.txt
* ` --locale ` : The directory where the existing ` .po ` files are located and will be read from. * ` --remove-used ` : When this option is used, the entries that are converted and added to the new ` .po ` file formatted for DRT will be removed from the original ` .po ` file, keeping it clean from already process...
django_modeltranslation/django-restful-translator8_81_0.txt
Sep 13, 2023 0.2.0
django_modeltranslation/caveats.html6_3_0.txt
When a translated field is accessed in a view function or in a template, it uses the ` django.utils.translation.get_language ` function to determine the current language and return the appropriate value. Outside a view (or a template), i.e. in normal Python code, a call to the ` get_language ` function still returns...
django_modeltranslation/django-rest-framework-translation5_36_0.txt
Mindbowser and team are professional, talented and very responsive. They got us through a challenging situation with our IOT product successfully. They will be our go to dev team going forward. #### Dan Munro
django_modeltranslation/django-rest-framework-translation5_19_0.txt
###### Associate Software Engineer Affan is a full-stack developer with over 1.8 years of experience in React and Python. He is a passionate developer committed to creating seamless and innovative digital experiences. He has a unique blend of React and Python skills that allow him to bring ideas to life and solve com...
django_modeltranslation/django-rest-framework-translation5_68_0.txt
#### Bennet Gillogly Co-Founder, Flat Earth
django_modeltranslation/django-restful-translator8_86_0.txt
django_restful_translator-0.9.4.tar.gz (16.1 kB view hashes ) Uploaded Mar 28, 2024 ` Source `
django_modeltranslation/django-rest-framework-translation5_29_0.txt
Technology Blogs ##### Integrating SendGrid With Django Rest Framework
django_modeltranslation/caveats.html6_0_0.txt
### Navigation * index * next | * previous | * django-modeltranslation dev documentation »
django_modeltranslation/django-rest-framework-translation5_55_0.txt
Founder & CEO, MangoMirror Kudos for all your hard work and diligence on the Telehealth platform project. You made it possible.
django_modeltranslation/django-rest-framework-translation5_47_0.txt
#### Bart Mendel Founder, Mindworks
django_modeltranslation/django-rest-framework-translation5_35_0.txt
#### David Rhodes President, E.B. Carlson
django_modeltranslation/django-rest-framework-translation5_9_0.txt
from gtranslate import Translator def translate_text(text, target_language='en'): translator = Translator(api_key='YOUR_GOOGLE_TRANSLATE_API_KEY') translated_text = translator.translate(text, target_language) return translated_text Remember to replace ‘YOUR_GOOGLE_TRANSLATE_API_KEY’ ...
django_modeltranslation/django-rest-framework-translation5_43_0.txt
CEO, KickSnap We had very close go live timeline and MindBowser team got us live a month before.
django_modeltranslation/caveats.html6_11_0.txt
#### Next topic How to Contribute
django_modeltranslation/django-restful-translator8_69_0.txt
Mar 26, 2024 0.9.1
django_modeltranslation/django-parler-rest4_16_0.txt
Fund open source developers * The ReadME Project
django_modeltranslation/django-parler-rest4_17_0.txt
GitHub community articles Repositories
django_modeltranslation/caveats.html6_14_0.txt
* index * next | * previous | * django-modeltranslation dev documentation » © Copyright 2009-2019, Peter Eschler, Dirk Eschler, Jacek Tomaszewski. Created using Sphinx 1.8.6.
django_modeltranslation/django-rest-framework-translation5_59_0.txt
#### Kristen M. Founder & CEO, TotTech
django_modeltranslation/django-restful-translator8_12_0.txt
View statistics for this project via Libraries.io , or by using our public dataset on Google BigQuery ###### Meta
django_modeltranslation/django-parler-rest4_72_0.txt
Readme ### License
django_modeltranslation/django_modeltranslation_0_3.txt
th None-checkbox #### Previous topic [ ModelForms ](forms.html "previous chapter") #### Next topic [ Management Commands ](commands.html "next chapter") ### This Page * [ Show Source ](_sources/admin.rst.txt) ### Quick search ### Navigation * [ index ](genindex.html "General Index") * [ next ](comm...
django_modeltranslation/django-parler-rest4_31_0.txt
Apache-2.0 license 58 stars 16 forks Branches Tags Activity
django_modeltranslation/django-restful-translator8_56_0.txt
### Verified details These details have been verified by PyPI
django_modeltranslation/django-parler-rest4_26_0.txt
Cancel Create saved search Sign in
django_modeltranslation/django-restful-translator8_93_0.txt
* PyPI Blog * Infrastructure dashboard * Statistics * Logos & trademarks * Our sponsors ## Contributing to PyPI
django_modeltranslation/django-parler-rest4_58_0.txt
### setup.py | | View all files ## Repository files navigation
django_modeltranslation/django-parler-rest4_59_0.txt
* README * Apache-2.0 license # django-parler-rest