Skip to content

Conversation

@mmcky
Copy link
Contributor

@mmcky mmcky commented Oct 27, 2025

This PR adds the Persian translation of the Functions lecture.

Changes

  • ✅ Translated lectures/functions.md from English to Persian
  • ✅ Updated _toc.yml to include the functions lecture
  • ✅ Maintained all code examples in original English/Python syntax
  • ✅ Preserved mathematical notation and formulas
  • ✅ Applied RTL (right-to-left) formatting for Persian text

Translation Details

This lecture covers:

  • Function basics and built-in functions
  • Defining custom functions
  • Keyword arguments
  • Lambda functions
  • Recursive functions
  • Practical applications and exercises

Next Steps

After this PR is merged, the next lecture to translate would be python_essentials.

- Translate functions.md from English to Persian
- Update _toc.yml to include functions lecture
- Maintain all code examples and technical syntax
- Preserve right-to-left (RTL) formatting for Persian text
@netlify
Copy link

netlify bot commented Oct 27, 2025

Deploy Preview for majestic-griffin-10b166 ready!

Name Link
🔨 Latest commit 4df75ea
🔍 Latest deploy log https://app.netlify.com/projects/majestic-griffin-10b166/deploys/68ff00dbd7f3ed0008262166
😎 Deploy Preview https://deploy-preview-13--majestic-griffin-10b166.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mmcky
Copy link
Contributor Author

mmcky commented Oct 27, 2025

@Zahra-khanzadeh sorry for my slow response on this project.

I have submitted a translation for the next lecture. When you have time, would you mind to please review it and let me know what quality of translation this is.

Can you let me know if this translation would be a useful starting point for your translation efforts? If Yes, I will setup a PR for ALL lectures.

- Changed from treating warnings as errors to allowing warnings
- This enables preview builds to complete successfully
- Kept -n (nitpick) and --keep-going flags for better error reporting
@github-actions
Copy link

@github-actions github-actions bot temporarily deployed to pull request October 27, 2025 05:25 Inactive
@Zahra-khanzadeh
Copy link
Contributor

@Zahra-khanzadeh sorry for my slow response on this project.

I have submitted a translation for the next lecture. When you have time, would you mind to please review it and let me know what quality of translation this is.

Can you let me know if this translation would be a useful starting point for your translation efforts? If Yes, I will setup a PR for ALL lectures.

Thanks a lot for sharing this translation, @mmcky . It’s a great starting point and will really help speed things up! 🙏

I went through the text carefully. Overall it looks good, but some technical terms were translated a bit too literally, and a few sentences could be phrased more smoothly to sound natural in Persian.

In the pull request I made for python_by_example.md, I tried to fix the issue with how functions were displayed. The same issue exists in this section as well, and I can take care of fixing it.

@mmcky
Copy link
Contributor Author

mmcky commented Oct 29, 2025

Thanks for the feedback @Zahra-khanzadeh. Great that it can be useful.

In the next week, I can open PRs for additional pre-translations for the next few lectures, but no rush on editing them.

@Zahra-khanzadeh
Copy link
Contributor

Thanks so much, @mmcky . That sounds great! I’ve already updated my local files with the latest changes and can start editing this lecture soon.

Before I begin, I just wanted to check one thing with you.
For the parentheses issue (like in function calls), would you prefer that I fix them manually for now by placing the parentheses on the left side, as I did in python_by_example.md, or should I leave them unchanged since you’re exploring an automatic solution?

Once I know which approach you prefer, I’ll start editing and adjusting the translation accordingly.

Thanks again for your guidance and all your hard work on the theme improvements🙏

@mmcky mmcky merged commit 0772596 into main Oct 30, 2025
6 checks passed
@mmcky mmcky deleted the translate-functions branch October 30, 2025 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants