# Translation Examples - Common Strings

Use this file to see what strings need translation. This helps you prepare translations before running makemessages.

## Product Detail Page

```django
{# product_detail.html #}

{% trans "Home" %}
{% trans "Products" %}
{% trans "Description" %}
{% trans "Rating" %}
{% trans "Price" %}
{% trans "Availability" %}
{% trans "Add to Cart" %}
{% trans "Remove from Wishlist" %}
{% trans "Add to Wishlist" %}
{% trans "In Wishlist" %}
{% trans "Share this product" %}
{% trans "Share" %}
{% trans "Tweet" %}
{% trans "WhatsApp" %}
{% trans "Copy Link" %}
{% trans "Features & Specifications" %}
{% trans "Edit Product" %}
{% trans "Make an Offer" %}
{% trans "Submit Offer" %}
{% trans "Available Variants" %}
{% trans "Stock" %}
{% trans "Leave a Review" %}
{% trans "Your Review" %}
{% trans "Submit Review" %}
{% trans "Customer Reviews" %}
{% trans "Excellent" %}
{% trans "Good" %}
{% trans "Average" %}
{% trans "Fair" %}
{% trans "Poor" %}
```

## Navbar

```django
{# navbar.html #}

{% trans "Search products..." %}
{% trans "Login" %}
{% trans "Shop" %}
{% trans "Categories" %}
{% trans "About" %}
{% trans "Help" %}
{% trans "FAQ" %}
{% trans "Dashboard" %}
{% trans "My Orders" %}
{% trans "Admin Dashboard" %}
{% trans "Manage Inventory" %}
{% trans "Manage Orders" %}
{% trans "Manage Category" %}
{% trans "Manage Product" %}
{% trans "Logout" %}
{% trans "Visitors today" %}
```

## Cart Page

```django
{# cart.html #}

{% trans "Shopping Cart" %}
{% trans "Product" %}
{% trans "Quantity" %}
{% trans "Price" %}
{% trans "Subtotal" %}
{% trans "Remove" %}
{% trans "Continue Shopping" %}
{% trans "Proceed to Checkout" %}
{% trans "Cart Total" %}
{% trans "Your cart is empty" %}
```

## Checkout

```django
{# checkout.html #}

{% trans "Checkout" %}
{% trans "Shipping Address" %}
{% trans "Billing Address" %}
{% trans "Payment Method" %}
{% trans "Order Summary" %}
{% trans "Place Order" %}
{% trans "Enter your address" %}
{% trans "Select payment method" %}
{% trans "Credit Card" %}
{% trans "Debit Card" %}
{% trans "Bank Transfer" %}
```

## Account/Auth

```django
{# account/login.html #}

{% trans "Log In" %}
{% trans "Email" %}
{% trans "Password" %}
{% trans "Remember Me" %}
{% trans "Forgot Password?" %}
{% trans "Don't have an account?" %}
{% trans "Sign Up" %}

{# account/signup.html #}

{% trans "Create Account" %}
{% trans "Username" %}
{% trans "Email Address" %}
{% trans "Confirm Password" %}
{% trans "I agree to the Terms and Conditions" %}
{% trans "Already have an account?" %}
```

## Error Messages

```python
# views.py
from django.utils.translation import gettext as _

# Cart errors
_("Product out of stock")
_("Quantity exceeds available stock")
_("Please log in to add items to wishlist")

# Order errors
_("Order not found")
_("Payment failed")
_("Invalid payment method")

# Account errors
_("Invalid email or password")
_("Email already registered")
_("Password too weak")
```

## Success Messages

```python
# views.py
_("Item added to cart successfully")
_("Item removed from cart")
_("Added to wishlist")
_("Removed from wishlist")
_("Order placed successfully")
_("Review submitted")
_("Profile updated")
_("Password changed")
```

## Notification Strings

```python
# Email notifications
_("Welcome to BanshiX!")
_("Your order has been confirmed")
_("Your order is being prepared")
_("Your order has shipped")
_("Your order has been delivered")
_("Payment received")
_("Payment failed")
_("Refund processed")
```

## Dashboard Strings

```django
{% trans "Dashboard" %}
{% trans "Recent Orders" %}
{% trans "Wishlist" %}
{% trans "Saved Addresses" %}
{% trans "Account Settings" %}
{% trans "Order History" %}
{% trans "Track Order" %}
{% trans "Download Invoice" %}
{% trans "Cancel Order" %}
{% trans "Return Item" %}
{% trans "Contact Support" %}
```

## Product Management

```django
{% trans "Create Product" %}
{% trans "Product Name" %}
{% trans "Description" %}
{% trans "Category" %}
{% trans "Price" %}
{% trans "Stock" %}
{% trans "Images" %}
{% trans "Videos" %}
{% trans "Variants" %}
{% trans "Save Product" %}
{% trans "Delete Product" %}
{% trans "Update Product" %}
{% trans "Product saved successfully" %}
{% trans "Product deleted" %}
```

## Inventory Management

```django
{% trans "Inventory" %}
{% trans "Stock Level" %}
{% trans "Reorder Point" %}
{% trans "Last Updated" %}
{% trans "Adjust Stock" %}
{% trans "Add Stock" %}
{% trans "Remove Stock" %}
{% trans "Stock History" %}
{% trans "Low Stock Alert" %}
```

## Example: German Translation

For reference, here's how these would look in German:

```po
msgid "Add to Cart"
msgstr "Zum Warenkorb hinzufügen"

msgid "Price"
msgstr "Preis"

msgid "Description"
msgstr "Beschreibung"

msgid "Rating"
msgstr "Bewertung"

msgid "Share this product"
msgstr "Dieses Produkt teilen"

msgid "Your cart is empty"
msgstr "Ihr Warenkorb ist leer"

msgid "Checkout"
msgstr "Zur Kasse"

msgid "Order placed successfully"
msgstr "Bestellung erfolgreich aufgegeben"

msgid "Item added to cart successfully"
msgstr "Artikel erfolgreich zum Warenkorb hinzugefügt"

msgid "Welcome to BanshiX!"
msgstr "Willkommen bei BanshiX!"
```

## Example: Chinese Translation

```po
msgid "Add to Cart"
msgstr "添加到购物车"

msgid "Price"
msgstr "价格"

msgid "Description"
msgstr "描述"

msgid "Rating"
msgstr "评级"

msgid "Share this product"
msgstr "分享此产品"

msgid "Your cart is empty"
msgstr "您的购物车为空"

msgid "Checkout"
msgstr "结账"

msgid "Order placed successfully"
msgstr "订单成功下单"

msgid "Item added to cart successfully"
msgstr "商品成功添加到购物车"

msgid "Welcome to BanshiX!"
msgstr "欢迎来到 BanshiX！"
```

## Example: Japanese Translation

```po
msgid "Add to Cart"
msgstr "カートに追加"

msgid "Price"
msgstr "価格"

msgid "Description"
msgstr "説明"

msgid "Rating"
msgstr "評価"

msgid "Share this product"
msgstr "この製品を共有"

msgid "Your cart is empty"
msgstr "カートが空です"

msgid "Checkout"
msgstr "チェックアウト"

msgid "Order placed successfully"
msgstr "注文が正常に下されました"

msgid "Item added to cart successfully"
msgstr "商品がカートに正常に追加されました"

msgid "Welcome to BanshiX!"
msgstr "BanshiX へようこそ！"
```

## How to Use This File

1. **For makemessages workflow:**
   - Add these `{% trans %}` tags to your templates
   - Run `python manage.py makemessages -l [lang_code]`
   - Open the generated `.po` file
   - Translate each msgstr

2. **For Python code:**
   - Import: `from django.utils.translation import gettext as _`
   - Wrap strings: `_("Your message here")`
   - Run makemessages to extract

3. **Copy reference translations:**
   - Use German, Chinese, Japanese translations as examples
   - Modify for your context if needed
   - Compile with: `python manage.py compilemessages`

## Coverage Checklist

- [ ] Product pages (product list, detail, reviews)
- [ ] Cart and checkout
- [ ] User account (login, signup, profile)
- [ ] Navigation and menus
- [ ] Error messages
- [ ] Success messages
- [ ] Admin dashboard
- [ ] Order management
- [ ] Inventory management
- [ ] Email notifications
- [ ] Help and FAQ pages

---

**Note**: This is a starting point. As you add more features to BanshiX, add more translation strings to this guide.
